Package org.nuiton.math.matrix
Class LazyVector.DummyVectorIterator
- java.lang.Object
-
- org.nuiton.math.matrix.LazyVector.DummyVectorIterator
-
- All Implemented Interfaces:
VectorIterator
- Enclosing class:
- LazyVector
protected class LazyVector.DummyVectorIterator extends Object implements VectorIterator
Iterator qui retourne toujours la meme valeur un certain nombre de fois
-
-
Field Summary
Fields Modifier and Type Field Description protected double
defaultValue
protected long
pos
protected long
size
protected double
value
protected LazyVector
vector
-
Constructor Summary
Constructors Constructor Description DummyVectorIterator(LazyVector vector, long size, double defaultValue)
-
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
-
size
protected long size
-
defaultValue
protected double defaultValue
-
value
protected double value
-
pos
protected long pos
-
-
Constructor Detail
-
DummyVectorIterator
public DummyVectorIterator(LazyVector vector, long size, double defaultValue)
-
-
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:
-
-