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>

public final class HybridHashMap<K,V> extends AbstractHybridMap<K,V> implements Serializable
Hybrid map that uses hash map for large map.
See Also:
  • Constructor Details

    • HybridHashMap

      public HybridHashMap()
      Constructs a new empty hybrid map.
    • HybridHashMap

      public HybridHashMap(Map<K,V> m)
      Constructs a new hybrid map from the given map.
  • Method Details

    • newLargeMap

      protected Map<K,V> newLargeMap(int initialCapacity)
      Description copied from class: AbstractHybridMap
      Creates a large map.
      Specified by:
      newLargeMap in class AbstractHybridMap<K,V>
      Parameters:
      initialCapacity - initial capacity of the resulting map.