|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.SampleDataAccessFeatureIterator
public class SampleDataAccessFeatureIterator
Decorator for Iterator<Feature> to provide a FeatureIterator<Feature> that adds a
close method that does nothing. This class exists only to satisfy the FeatureCollection
API. All iteration is performed using the iterator passed to the constructor.
Constructor Summary | |
---|---|
SampleDataAccessFeatureIterator(java.util.Iterator<org.opengis.feature.Feature> iterator)
Constructor. |
Method Summary | |
---|---|
void |
close()
Nothing to close. |
boolean |
hasNext()
Does another Feature exist in this Iteration. |
org.opengis.feature.Feature |
next()
Get the next Feature in this iteration. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleDataAccessFeatureIterator(java.util.Iterator<org.opengis.feature.Feature> iterator)
iterator
- iterator to which all iteration is delegated.Method Detail |
---|
public boolean hasNext()
FeatureIterator
Iterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
hasNext
in interface FeatureIterator<org.opengis.feature.Feature>
Iterator.hasNext()
public org.opengis.feature.Feature next()
FeatureIterator
next
in interface FeatureIterator<org.opengis.feature.Feature>
Iterator.next()
public void remove()
Iterator.remove()
public void close()
close
in interface FeatureIterator<org.opengis.feature.Feature>
FeatureIterator.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |