public interface PointFeatureIterator extends java.io.Closeable, java.util.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.
|
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 java.util.Iterator<PointFeature>
java.lang.RuntimeException
- on i/o errorPointFeature next()
next
in interface java.util.Iterator<PointFeature>
java.lang.RuntimeException
- on i/o errorvoid close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable