Package ucar.nc2.ft.point
Class PointFeatureCCIteratorFiltered
- java.lang.Object
-
- ucar.nc2.ft.point.PointFeatureCCIteratorFiltered
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PointFeatureCCIterator,IOIterator<PointFeatureCC>
public class PointFeatureCCIteratorFiltered extends Object implements PointFeatureCCIterator, IOIterator<PointFeatureCC>
Implement NestedPointFeatureCollectionIterator interface- Since:
- Mar 20, 2008
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.ft.PointFeatureCCIterator
PointFeatureCCIterator.Filter
-
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean hasNext() throws IOExceptionDescription copied from interface:PointFeatureCCIteratortrue if another Feature object is available- Specified by:
hasNextin interfaceIOIterator<PointFeatureCC>- Specified by:
hasNextin interfacePointFeatureCCIterator- Returns:
- true if another Feature object is available
- Throws:
IOException- on i/o error
-
next
public PointFeatureCC next()
Description copied from interface:PointFeatureCCIteratorReturns the next NestedPointFeatureCollection object You must call hasNext() before calling next(), even if you know it will return true.- Specified by:
nextin interfaceIOIterator<PointFeatureCC>- Specified by:
nextin interfacePointFeatureCCIterator- Returns:
- the next NestedPointFeatureCollection object
-
close
public void close()
Description copied from interface:PointFeatureCCIteratorMake 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- Specified by:
closein interfacePointFeatureCCIterator
-
-