Package org.nuiton.math.matrix
Class LazyVector.LazyVectorIterator
- java.lang.Object
-
- org.nuiton.math.matrix.LazyVector.LazyVectorIterator
-
- All Implemented Interfaces:
VectorIterator
- Enclosing class:
- LazyVector
protected class LazyVector.LazyVectorIterator extends Object implements VectorIterator
Iterator qui prepare le backend que lors d'un set
-
-
Field Summary
Fields Modifier and Type Field Description protected VectorIterator
iter
protected double
value
protected LazyVector
vector
-
Constructor Summary
Constructors Constructor Description LazyVectorIterator(LazyVector vector, VectorIterator iter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getPosition()
return linear position of current value in vectordouble
getValue()
boolean
hasNext()
double
next()
void
setExclude(double exclude)
void
setValue(double value)
-
-
-
Field Detail
-
vector
protected LazyVector vector
-
iter
protected VectorIterator iter
-
value
protected double value
-
-
Constructor Detail
-
LazyVectorIterator
public LazyVectorIterator(LazyVector vector, VectorIterator iter)
-
-
Method Detail
-
setExclude
public void setExclude(double exclude)
- Specified by:
setExclude
in interfaceVectorIterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceVectorIterator
-
next
public double next()
- Specified by:
next
in interfaceVectorIterator
-
getValue
public double getValue()
- Specified by:
getValue
in interfaceVectorIterator
-
setValue
public void setValue(double value)
- Specified by:
setValue
in interfaceVectorIterator
-
getPosition
public long getPosition()
Description copied from interface:VectorIterator
return linear position of current value in vector- Specified by:
getPosition
in interfaceVectorIterator
- Returns:
-
-