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 doubledefaultValueprotected intposprotected intsizeprotected doublevalueprotected LazyVectorvector -
Constructor Summary
Constructors Constructor Description DummyVectorIterator(LazyVector vector, int size, double defaultValue) -
Method Summary
Modifier and Type Method Description intgetPosition()return linear position of current value in vectordoublegetValue()booleanhasNext()doublenext()voidsetExclude(double exclude)voidsetValue(double value)
-
Field Details
-
vector
-
size
protected int size -
defaultValue
protected double defaultValue -
value
protected double value -
pos
protected int pos
-
-
Constructor Details
-
Method Details
-
setExclude
public void setExclude(double exclude)- Specified by:
setExcludein interfaceVectorIterator
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceVectorIterator
-
next
public double next()- Specified by:
nextin interfaceVectorIterator
-
getValue
public double getValue()- Specified by:
getValuein interfaceVectorIterator
-
setValue
public void setValue(double value)- Specified by:
setValuein interfaceVectorIterator
-
getPosition
public int getPosition()Description copied from interface:VectorIteratorreturn linear position of current value in vector- Specified by:
getPositionin interfaceVectorIterator- Returns:
-