protected class OpenMapRealVector.OpenMapEntry extends RealVector.Entry
Entry
optimized for OpenMap.
This implementation does not allow arbitrary calls to setIndex
since the order in which entries are returned is undefined.Modifier | Constructor and Description |
---|---|
protected |
OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter)
Build an entry from an iterator point to an element.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Get the index of the entry.
|
double |
getValue()
Get the value of the entry.
|
void |
setValue(double value)
Set the value of the entry.
|
setIndex
protected OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter)
iter
- Iterator pointing to the entry.public double getValue()
getValue
in class RealVector.Entry
public void setValue(double value)
setValue
in class RealVector.Entry
value
- New value for the entry.public int getIndex()
getIndex
in class RealVector.Entry
Copyright © 2016–2019 Hipparchus.org. All rights reserved.