protected class OpenMapRealVector.OpenMapEntry extends RealVector.Entry
Entry optimized for OpenMap.
This implementation does not allow arbitrary calls to setIndex
since the order that entries are returned is undefined.
| Modifier and Type | Field and Description |
|---|---|
private OpenIntToDoubleHashMap.Iterator |
iter
Iterator pointing to the entry.
|
| Modifier | Constructor and Description |
|---|---|
protected |
OpenMapRealVector.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.
|
setIndexprivate final OpenIntToDoubleHashMap.Iterator iter
protected OpenMapRealVector.OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter)
iter - iterator pointing to the entrypublic 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 (c) 2003-2013 Apache Software Foundation