Class EntryHashMap<K,V extends EntryHashMap.Entry<K>>
java.lang.Object
org.openjdk.jmc.common.collection.KeyInValueMap<K,V>
org.openjdk.jmc.common.collection.EntryHashMap<K,V>
- Type Parameters:
K- key typeV- value type which has a reference to its key
- All Implemented Interfaces:
Iterable<V>
A map of Entry values (containing the key and the value) that can be subclassed to allow mapping
of mutable values. Note that the key values are final and may not be changed.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openjdk.jmc.common.collection.KeyInValueMap
computeValue, get, hashKey, iterator, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EntryHashMap
public EntryHashMap(int initialCapacity, float loadFactor) Create a new map.- Parameters:
initialCapacity- initial storage capacityloadFactor- load factor at which to increase the internal storage capacity
-
-
Method Details
-
getKey
Description copied from class:KeyInValueMapGet the key for a value.- Specified by:
getKeyin classKeyInValueMap<K,V extends EntryHashMap.Entry<K>> - Parameters:
value- value to get key for- Returns:
- key for value
-