Package noaa.coastwatch.util
Class DataVariableIterator
java.lang.Object
noaa.coastwatch.util.DataVariableIterator
- All Implemented Interfaces:
Iterator<Double>,DataIterator,DoubleIterator,ResettableIterator
The
DataVariableIterator class iterates over the
locations of a data variable and returns the data values found.- Since:
- 3.1.7
- Author:
- Peter Hollemans
-
Constructor Summary
ConstructorsConstructorDescriptionDataVariableIterator(DataVariable variable, DataLocationIterator locationIter) Creates a new iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DataVariableIterator
Creates a new iterator.- Parameters:
variable- the data variable from which to obtain values.locationIter- the location iterator from which to obtain location values.
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextDouble
public double nextDouble()- Specified by:
nextDoublein interfaceDoubleIterator
-
remove
public void remove() -
reset
public void reset()Description copied from interface:ResettableIteratorResets the iterator to the first element.- Specified by:
resetin interfaceResettableIterator
-
next
-