KeyType
- The type of the key in the map.protected static class AbstractLogNumberMap.SimpleEntry<KeyType> extends java.lang.Object implements ScalarMap.Entry<KeyType>, InfiniteVector.Entry<KeyType>
Modifier and Type | Field and Description |
---|---|
protected KeyType |
key
Key associated with this entry
|
protected LogNumber |
value
Value associated with the entry
|
Constructor and Description |
---|
SimpleEntry(KeyType key,
LogNumber value)
Creates a new instance of SimpleEntry
|
Modifier and Type | Method and Description |
---|---|
KeyType |
getKey()
Gets the key.
|
double |
getValue()
Gets the value associated with the key.
|
void |
setValue(double value)
Sets the value associated with the key.
|
protected KeyType key
protected LogNumber value
public KeyType getKey()
ScalarMap.Entry
getKey
in interface ScalarMap.Entry<KeyType>
public double getValue()
ScalarMap.Entry
getValue
in interface ScalarMap.Entry<KeyType>
getValue
in interface VectorSpace.Entry
public void setValue(double value)
ScalarMap.Entry
setValue
in interface ScalarMap.Entry<KeyType>
setValue
in interface VectorSpace.Entry
value
- The value.