Package pascal.taie.util.collection
Class HybridHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
pascal.taie.util.collection.AbstractHybridMap<K,V>
pascal.taie.util.collection.HybridHashMap<K,V>
- All Implemented Interfaces:
Serializable
,Map<K,
V>
Hybrid map that uses hash map for large map.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionConstructs a new empty hybrid map.HybridHashMap
(Map<K, V> m) Constructs a new hybrid map from the given map. -
Method Summary
Methods inherited from class pascal.taie.util.collection.AbstractHybridMap
clear, containsKey, containsValue, entrySet, equals, get, getThreshold, hashCode, isEmpty, keySet, newSmallMap, put, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
clone, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
HybridHashMap
public HybridHashMap()Constructs a new empty hybrid map. -
HybridHashMap
Constructs a new hybrid map from the given map.
-
-
Method Details
-
newLargeMap
Description copied from class:AbstractHybridMap
Creates a large map.- Specified by:
newLargeMap
in classAbstractHybridMap<K,
V> - Parameters:
initialCapacity
- initial capacity of the resulting map.
-