Class MapToolkit
java.lang.Object
org.openjdk.jmc.common.collection.MapToolkit
Useful methods related to maps.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A map entry used to store integer values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K> EntryHashMap<K,
MapToolkit.IntEntry<K>> createIntMap
(int initialCapacity, float loadFactor) Create a map for storing integers based on a given key type.
-
Constructor Details
-
MapToolkit
public MapToolkit()
-
-
Method Details
-
createIntMap
public static <K> EntryHashMap<K,MapToolkit.IntEntry<K>> createIntMap(int initialCapacity, float loadFactor) Create a map for storing integers based on a given key type. Typically this is used to access and update integer values computed from or for the keys.- Type Parameters:
K
- the key type- Parameters:
initialCapacity
- initial storage capacityloadFactor
- load factor at which to increase the internal storage capacity- Returns:
- a map of integer entries
-