K
- key typeV
- value type which has a reference to its keypublic abstract class EntryHashMap<K,V extends EntryHashMap.Entry<K>> extends KeyInValueMap<K,V>
Modifier and Type | Class and Description |
---|---|
static class |
EntryHashMap.Entry<K>
An entry in an EntryHashMap.
|
Constructor and Description |
---|
EntryHashMap(int initialCapacity,
float loadFactor)
Create a new map.
|
Modifier and Type | Method and Description |
---|---|
protected K |
getKey(V value)
Get the key for a value.
|
computeValue, get, hashKey, iterator, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public EntryHashMap(int initialCapacity, float loadFactor)
initialCapacity
- initial storage capacityloadFactor
- load factor at which to increase the internal storage capacityprotected K getKey(V value)
KeyInValueMap
getKey
in class KeyInValueMap<K,V extends EntryHashMap.Entry<K>>
value
- value to get key forCopyright © 2020. All rights reserved.