org.gcube.portlets.user.speciesdiscovery.server.stream
Class IteratorPointInfo

java.lang.Object
  extended by org.gcube.portlets.user.speciesdiscovery.server.stream.IteratorPointInfo
All Implemented Interfaces:
Iterator<org.gcube.data.spd.model.PointInfo>, org.gcube.data.streams.Stream<org.gcube.data.spd.model.PointInfo>

public class IteratorPointInfo
extends Object
implements org.gcube.data.streams.Stream<org.gcube.data.spd.model.PointInfo>


Field Summary
protected  org.apache.log4j.Logger logger
           
 
Constructor Summary
IteratorPointInfo(Iterator<Occurrence> iterator)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 boolean isClosed()
           
 Iterator<org.gcube.data.spd.model.PointInfo> iterator()
           
 URI locator()
           
 org.gcube.data.spd.model.PointInfo next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.apache.log4j.Logger logger
Constructor Detail

IteratorPointInfo

public IteratorPointInfo(Iterator<Occurrence> iterator)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<org.gcube.data.spd.model.PointInfo>
Specified by:
hasNext in interface org.gcube.data.streams.Stream<org.gcube.data.spd.model.PointInfo>

next

public org.gcube.data.spd.model.PointInfo next()
Specified by:
next in interface Iterator<org.gcube.data.spd.model.PointInfo>
Specified by:
next in interface org.gcube.data.streams.Stream<org.gcube.data.spd.model.PointInfo>

remove

public void remove()
Specified by:
remove in interface Iterator<org.gcube.data.spd.model.PointInfo>

iterator

public Iterator<org.gcube.data.spd.model.PointInfo> iterator()

close

public void close()
Specified by:
close in interface org.gcube.data.streams.Stream<org.gcube.data.spd.model.PointInfo>

locator

public URI locator()
            throws IllegalStateException
Specified by:
locator in interface org.gcube.data.streams.Stream<org.gcube.data.spd.model.PointInfo>
Throws:
IllegalStateException

isClosed

public boolean isClosed()
Specified by:
isClosed in interface org.gcube.data.streams.Stream<org.gcube.data.spd.model.PointInfo>


Copyright © 2013. All Rights Reserved.