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 boolean
hasNext()
Check if another PointFeature is available.protected abstract PointFeature
makeFeature(int recnum, StructureData sdata)
PointFeature
next()
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:PointFeatureIterator
Check if another PointFeature is available.Since this iterator may be used in a for-each statement, implementations should
close
it the first time this method returnsfalse
, as it may not get closed otherwise.- Specified by:
hasNext
in interfaceIterator<PointFeature>
- Specified by:
hasNext
in interfacePointFeatureIterator
- Returns:
- true if another PointFeature is available
-
next
public PointFeature next()
Description copied from interface:PointFeatureIterator
Returns the next PointFeature. You must call hasNext() before calling next(), even if you know it will return true.- Specified by:
next
in interfaceIterator<PointFeature>
- Specified by:
next
in interfacePointFeatureIterator
- Returns:
- the next PointFeature
-
-