public interface PointFeatureIterator extends Closeable, Iterator<PointFeature>
try (PointFeatureIterator iter = getIter()) { while (iter.hasNext()) process(iter.next()); }
Modifier and Type | Interface and Description |
---|---|
static interface |
PointFeatureIterator.Filter
A filter on PointFeatures
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Make sure that the iterator is complete, and recover resources.
|
boolean |
hasNext()
Check if another PointFeature is available.
|
PointFeature |
next()
Returns the next PointFeature.
|
forEachRemaining, remove
boolean hasNext()
Since this iterator may be used in a for-each statement, implementations should close
it the first
time this method returns false
, as it may not get closed otherwise.
hasNext
in interface Iterator<PointFeature>
RuntimeException
- on i/o errorPointFeature next()
next
in interface Iterator<PointFeature>
RuntimeException
- on i/o errorvoid close()
close
in interface AutoCloseable
close
in interface Closeable