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 | Description |
|---|---|---|
protected |
OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter) |
Build an entry from an iterator point to an element.
|
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetIndexprotected OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter)
iter - Iterator pointing to the entry.public double getValue()
getValue in class RealVector.Entrypublic void setValue(double value)
setValue in class RealVector.Entryvalue - New value for the entry.public int getIndex()
getIndex in class RealVector.EntryCopyright © 2016–2018 Hipparchus.org. All rights reserved.