Package ucar.nc2.ft
Interface PointFeatureCollectionIterator
-
- All Superinterfaces:
AutoCloseable,Closeable,IOIterator<PointFeatureCollection>
- All Known Implementing Classes:
PointCollectionIteratorFiltered
public interface PointFeatureCollectionIterator extends Closeable, IOIterator<PointFeatureCollection>
An iterator over PointFeatureCollections. Use try-with-resource to make sure resources are released:try (PointFeatureCollectionIterator iter = getIter()) { while (iter.hasNext()) process(iter.next()); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePointFeatureCollectionIterator.FilterA filter on PointFeatureCollection.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidclose()Make sure that the iterator is complete, and recover resources.default voidfinish()Deprecated.use try-with-resourcebooleanhasNext()true if another PointFeatureCollection is availablePointFeatureCollectionnext()Returns the next PointFeatureCollection You must call hasNext() before calling next(), even if you know it will return true.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws IOExceptiontrue if another PointFeatureCollection is available- Specified by:
hasNextin interfaceIOIterator<PointFeatureCollection>- Returns:
- true if another PointFeatureCollection is available
- Throws:
IOException- on i/o error
-
next
PointFeatureCollection next() throws IOException
Returns the next PointFeatureCollection You must call hasNext() before calling next(), even if you know it will return true.- Specified by:
nextin interfaceIOIterator<PointFeatureCollection>- Returns:
- the next PointFeatureCollection
- Throws:
IOException- on i/o error
-
close
default void close()
Make sure that the iterator is complete, and recover resources. You must complete the iteration (until hasNext() returns false) or call close(). may be called more than once.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
finish
default void finish()
Deprecated.use try-with-resource
-
-