public class DataVariableIterator extends java.lang.Object implements DataIterator
DataVariableIterator
class iterates over the
locations of a data variable and returns the data values found.Constructor and Description |
---|
DataVariableIterator(DataVariable variable,
DataLocationIterator locationIter)
Creates a new iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
java.lang.Double |
next() |
double |
nextDouble() |
void |
remove() |
void |
reset()
Resets the iterator to the first element.
|
public DataVariableIterator(DataVariable variable, DataLocationIterator locationIter)
variable
- the data variable from which to obtain values.locationIter
- the location iterator from which to obtain
location values.public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Double>
public double nextDouble()
nextDouble
in interface DoubleIterator
public void remove()
remove
in interface java.util.Iterator<java.lang.Double>
public void reset()
ResettableIterator
reset
in interface ResettableIterator
public java.lang.Double next()
next
in interface java.util.Iterator<java.lang.Double>