KeyType
- The type of the key in the map.protected static class AbstractMutableDoubleMap.SimpleEntry<KeyType> extends java.lang.Object implements AbstractMutableDoubleMap.Entry<KeyType>
Modifier and Type | Field and Description |
---|---|
protected KeyType |
key
Key associated with this entry
|
protected MutableDouble |
value
Value associated with the entry
|
Constructor and Description |
---|
SimpleEntry(KeyType key,
MutableDouble 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 MutableDouble value
public SimpleEntry(KeyType key, MutableDouble value)
key
- Key represented by the Entryvalue
- Value associated with the Entrypublic 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.