public class SampleDataAccessFeatureIterator extends Object implements FeatureIterator<Feature>
FeatureCollection
API. All iteration is performed using the iterator passed to the constructor.| Constructor and Description |
|---|
SampleDataAccessFeatureIterator(Iterator<Feature> iterator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Nothing to close.
|
boolean |
hasNext()
Does another Feature exist in this Iteration.
|
Feature |
next()
Get the next Feature in this iteration.
|
void |
remove() |
public boolean hasNext()
FeatureIteratorIterator 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<Feature>Iterator.hasNext()public Feature next()
FeatureIteratornext in interface FeatureIterator<Feature>Iterator.next()public void remove()
Iterator.remove()public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface FeatureIterator<Feature>FeatureIterator.close()Copyright © 1996–2019 Geotools. All rights reserved.