Package org.nuiton.math.matrix
Class VectorIteratorImpl
- java.lang.Object
-
- org.nuiton.math.matrix.VectorIteratorImpl
-
- All Implemented Interfaces:
VectorIterator
public class VectorIteratorImpl extends Object implements VectorIterator
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
-
Constructor Summary
Constructors Constructor Description VectorIteratorImpl(Vector vector)
VectorIteratorImpl(Vector vector, double exclude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
computeNextPos()
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
-
hasExclude
protected boolean hasExclude
-
exclude
protected double exclude
-
vector
protected Vector vector
-
size
protected long size
-
pos
protected long pos
-
nextPos
protected long nextPos
-
-
Method Detail
-
setExclude
public void setExclude(double exclude)
- Specified by:
setExclude
in interfaceVectorIterator
-
computeNextPos
protected void computeNextPos()
-
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:
-
-