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 interface
PointFeatureCollectionIterator.Filter
A filter on PointFeatureCollection.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
close()
Make sure that the iterator is complete, and recover resources.default void
finish()
Deprecated.use try-with-resourceboolean
hasNext()
true if another PointFeatureCollection is availablePointFeatureCollection
next()
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 IOException
true if another PointFeatureCollection is available- Specified by:
hasNext
in 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:
next
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
finish
default void finish()
Deprecated.use try-with-resource
-
-