K
- The type of the keyspublic class ToDoubleHashMap<K>
extends java.util.HashMap<K,java.lang.Double>
Constructor and Description |
---|
ToDoubleHashMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(K k,
double v)
Add to the the value associated with a key
|
K |
getMaxKey()
Returns the key which has the maximum value associated with it
|
void |
multiply(K k,
double v)
Multiply the value associated with a key
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
public void multiply(K k, double v)
k
- The key of the value to be changedv
- The amount to multiply the value bypublic void add(K k, double v)
k
- The key of the value to be changedv
- The amount to add to the valuepublic K getMaxKey()