public class IntDoubleHashMap
extends java.lang.Object
| Constructor and Description |
|---|
IntDoubleHashMap()
Constructs an empty HashMap with the default initial
capacity (16) and the default load factor (0.75).
|
IntDoubleHashMap(int initialCapacity,
float loadFactor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
get(int key)
Returns the value to which the specified key is mapped,
or Double.NaN if this map contains no mapping for the key.
|
double |
put(int key,
double value)
Associates the specified value with the specified key in this map.
|
double |
remove(int key)
Removes the mapping for the specified key from this map if present.
|
int |
size()
Returns the number of key-value mappings in this map.
|
public IntDoubleHashMap()
public IntDoubleHashMap(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity.loadFactor - the load factor.public double get(int key)
public double put(int key,
double value)
public double remove(int key)
public int size()