Class AbstractHybridMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
pascal.taie.util.collection.AbstractHybridMap<K,V>
Type Parameters:
K - type of keys
V - type of values
All Implemented Interfaces:
Serializable, Map<K,V>
Direct Known Subclasses:
HybridHashMap

public abstract class AbstractHybridMap<K,V> extends AbstractMap<K,V> implements Serializable
This map supports hybrid of two map implementations, where one is efficient for small map and another one is efficient for large map.

When the number of mappings contained in this map succeeds a threshold, it will automatically upgrade the map implementation to the one that is efficient for large map. Moreover, empty maps and singleton maps are represented with just a reference.

Keys added to this map cannot be null.

By default, this set use ArrayMap for small map.

See Also: