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>
public abstract class EntryHashMap<K,V extends EntryHashMap.Entry<K>> extends KeyInValueMap<K,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 Modifier and Type Class Description static class
EntryHashMap.Entry<K>
An entry in an EntryHashMap.
-
Constructor Summary
Constructors Constructor Description EntryHashMap(int initialCapacity, float loadFactor)
Create a new map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected K
getKey(V value)
Get the key for a value.-
Methods inherited from class org.openjdk.jmc.common.collection.KeyInValueMap
computeValue, get, hashKey, iterator, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getKey
protected K getKey(V value)
Description copied from class:KeyInValueMap
Get the key for a value.- Specified by:
getKey
in classKeyInValueMap<K,V extends EntryHashMap.Entry<K>>
- Parameters:
value
- value to get key for- Returns:
- key for value
-
-