Package ucar.nc2.ft.point
Class PointIteratorMultidim
- java.lang.Object
-
- ucar.nc2.ft.point.PointIteratorMultidim
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<PointFeature>,PointFeatureIterator
public abstract class PointIteratorMultidim extends Object implements PointFeatureIterator
A PointFeatureIterator using the "multidimensional representation". Not currently used.- Since:
- Mar 26, 2008
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.ft.PointFeatureIterator
PointFeatureIterator.Filter
-
-
Constructor Summary
Constructors Constructor Description PointIteratorMultidim(String name, List<Variable> vars, int outerIndex, PointFeatureIterator.Filter filter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Check if another PointFeature is available.protected abstract PointFeaturemakeFeature(int recnum, StructureData sdata)PointFeaturenext()Returns the next PointFeature.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Methods inherited from interface ucar.nc2.ft.PointFeatureIterator
close
-
-
-
-
Constructor Detail
-
PointIteratorMultidim
public PointIteratorMultidim(String name, List<Variable> vars, int outerIndex, PointFeatureIterator.Filter filter)
-
-
Method Detail
-
makeFeature
protected abstract PointFeature makeFeature(int recnum, StructureData sdata)
-
hasNext
public boolean hasNext()
Description copied from interface:PointFeatureIteratorCheck if another PointFeature is available.Since this iterator may be used in a for-each statement, implementations should
closeit the first time this method returnsfalse, as it may not get closed otherwise.- Specified by:
hasNextin interfaceIterator<PointFeature>- Specified by:
hasNextin interfacePointFeatureIterator- Returns:
- true if another PointFeature is available
-
next
public PointFeature next()
Description copied from interface:PointFeatureIteratorReturns the next PointFeature. You must call hasNext() before calling next(), even if you know it will return true.- Specified by:
nextin interfaceIterator<PointFeature>- Specified by:
nextin interfacePointFeatureIterator- Returns:
- the next PointFeature
-
-