Package ucar.nc2.ft.point
Class PointCollectionIteratorFiltered
- java.lang.Object
-
- ucar.nc2.ft.point.PointCollectionIteratorFiltered
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PointFeatureCollectionIterator,IOIterator<PointFeatureCollection>
public class PointCollectionIteratorFiltered extends Object implements PointFeatureCollectionIterator
Filter a PointFeatureCollectionIterator- Since:
- Mar 20, 2008
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.ft.PointFeatureCollectionIterator
PointFeatureCollectionIterator.Filter
-
-
Constructor Summary
Constructors Constructor Description PointCollectionIteratorFiltered(PointFeatureCollectionIterator pfciter, PointFeatureCollectionIterator.Filter 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 PointFeatureCollection is availablePointFeatureCollectionnext()Returns the next PointFeatureCollection You must call hasNext() before calling next(), even if you know it will return true.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.ft.PointFeatureCollectionIterator
finish
-
-
-
-
Constructor Detail
-
PointCollectionIteratorFiltered
public PointCollectionIteratorFiltered(PointFeatureCollectionIterator pfciter, PointFeatureCollectionIterator.Filter filter)
-
-
Method Detail
-
hasNext
public boolean hasNext() throws IOExceptionDescription copied from interface:PointFeatureCollectionIteratortrue if another PointFeatureCollection is available- Specified by:
hasNextin interfaceIOIterator<PointFeatureCollection>- Specified by:
hasNextin interfacePointFeatureCollectionIterator- Returns:
- true if another PointFeatureCollection is available
- Throws:
IOException- on i/o error
-
next
public PointFeatureCollection next()
Description copied from interface:PointFeatureCollectionIteratorReturns the next PointFeatureCollection You must call hasNext() before calling next(), even if you know it will return true.- Specified by:
nextin interfaceIOIterator<PointFeatureCollection>- Specified by:
nextin interfacePointFeatureCollectionIterator- Returns:
- the next PointFeatureCollection
-
close
public void close()
Description copied from interface:PointFeatureCollectionIteratorMake 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 interfacePointFeatureCollectionIterator
-
-