public class QuickOpenIntIntHashMap extends OpenIntIntHashMap
HashMap,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
int |
totalProbesSaved |
| Constructor and Description |
|---|
QuickOpenIntIntHashMap()
Constructs an empty map with default capacity and default load factors.
|
QuickOpenIntIntHashMap(int initialCapacity)
Constructs an empty map with the specified initial capacity and default
load factors.
|
QuickOpenIntIntHashMap(int initialCapacity,
double minLoadFactor,
double maxLoadFactor)
Constructs an empty map with the specified initial capacity and the
specified minimum and maximum load factor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
put(int key,
int value)
Associates the given key with the given value.
|
void |
rehash(int newCapacity)
Rehashes the contents of the receiver into a new table with a smaller or
larger capacity.
|
clear, clone, containsKey, containsValue, ensureCapacity, forEachKey, forEachPair, get, keyOf, keys, pairsMatching, removeKey, trimToSize, valuesassign, assign, copy, equals, keys, keysSortedByValue, pairsSortedByKey, pairsSortedByValue, toString, toStringByValue, valuesisEmpty, sizepublic QuickOpenIntIntHashMap()
public QuickOpenIntIntHashMap(int initialCapacity)
initialCapacity - the initial capacity of the map.IllegalArgumentException - if the initial capacity is less than zero.public QuickOpenIntIntHashMap(int initialCapacity,
double minLoadFactor,
double maxLoadFactor)
initialCapacity - the initial capacity.minLoadFactor - the minimum load factor.maxLoadFactor - the maximum load factor.IllegalArgumentException - if
initialCapacity < 0 || (minLoadFactor < 0.0 || minLoadFactor >= 1.0) || (maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0) || (minLoadFactor >= maxLoadFactor)
.public boolean put(int key,
int value)
put in class OpenIntIntHashMapkey - the key the value shall be associated with.value - the value to be associated.public void rehash(int newCapacity)
Jump to the Parallel Colt Homepage