Package ucar.nc2.ft
Interface PointFeatureCCIterator
-
- All Superinterfaces:
AutoCloseable,Closeable,IOIterator<PointFeatureCC>
- All Known Implementing Classes:
PointFeatureCCIteratorFiltered
public interface PointFeatureCCIterator extends Closeable, IOIterator<PointFeatureCC>
An iterator over PointFeatureCC. Use try-with-resource to make sure resources are released:try (PointFeatureCCIterator iter = getIter()) { while (iter.hasNext()) process(iter.next()); }- Since:
- Mar 20, 2008
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePointFeatureCCIterator.FilterA filter on nestedPointFeatureCollection
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Make sure that the iterator is complete, and recover resources.booleanhasNext()true if another Feature object is availablePointFeatureCCnext()Returns the next NestedPointFeatureCollection object You must call hasNext() before calling next(), even if you know it will return true.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws IOExceptiontrue if another Feature object is available- Specified by:
hasNextin interfaceIOIterator<PointFeatureCC>- Returns:
- true if another Feature object is available
- Throws:
IOException- on i/o error
-
next
PointFeatureCC next() throws IOException
Returns the next NestedPointFeatureCollection object You must call hasNext() before calling next(), even if you know it will return true.- Specified by:
nextin interfaceIOIterator<PointFeatureCC>- Returns:
- the next NestedPointFeatureCollection object
- Throws:
IOException- on i/o error
-
close
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
-
-