public interface FeatureIterator<F extends Feature> extends Closeable
close() after use.
FeatureIterator is a drop in replacement for Iterator Sample use:
FeatureIterator
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this iterator and releases any system resources associated with it.
|
boolean |
hasNext()
Does another Feature exist in this Iteration.
|
F |
next()
Get the next Feature in this iteration.
|
boolean hasNext()
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.)
F next() throws NoSuchElementException
NoSuchElementException - If no more Features exist.void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 1996–2019 Geotools. All rights reserved.