T - the element typepublic class CleaningLongHashMap<T> extends LongHashMap<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
CleaningLongHashMap.MapElement<V>
Refines the map element by a counter for duplicate entries.
|
AbstractLongHashMap.DelegatingMapIterator<T>, AbstractLongHashMap.MapIteratorDEFAULT_CAPACITY, DEFAULT_LOADFACTOR, MAXIMUM_CAPACITY| Constructor and Description |
|---|
CleaningLongHashMap()
Constructs an empty instance with the default initial capacity and the
default load factor.
|
CleaningLongHashMap(int initialCapacity)
Constructs an empty instance with the given initial capacity and the
default load factor.
|
CleaningLongHashMap(int initialCapacity,
float loadFactor)
Constructs an empty instance with the given initial capacity and the
given load factor.
|
| Modifier and Type | Method and Description |
|---|---|
protected LongHashMap.MapElement<T> |
create(long key,
java.lang.Object value)
Creates an element.
|
CleaningLongHashMap.MapElement<T> |
getElement(long key)
Returns the element matching the key, or null
if no such element exists.
|
entries, get, put, putAll, remove, valuesclear, containsKey, elements, getCapacity, getLoadFactor, getObjectCounter, isEmpty, keySet, putElement, removeElement, removeNotIn, setRehash, sizepublic CleaningLongHashMap()
public CleaningLongHashMap(int initialCapacity)
initialCapacity - The initial capacity for this hash map.public CleaningLongHashMap(int initialCapacity,
float loadFactor)
initialCapacity - The initial capacity for this hash map.loadFactor - The load factor for this hash map.protected LongHashMap.MapElement<T> create(long key, java.lang.Object value)
create in class LongHashMap<T>key - the hash key of the elementvalue - the value to be storedpublic CleaningLongHashMap.MapElement<T> getElement(long key)
getElement in class AbstractLongHashMapkey - the key to look for