Class Object2NullableObjectHashMap<K,​V>

  • Type Parameters:
    K - the type of keys maintained by this map.
    V - the type of mapped values.
    All Implemented Interfaces:
    java.util.Map<K,​V>

    public class Object2NullableObjectHashMap<K,​V>
    extends Object2ObjectHashMap<K,​V>
    Variation of Object2ObjectHashMap that allows null values.
    • Constructor Detail

      • Object2NullableObjectHashMap

        public Object2NullableObjectHashMap()
        Default constructor.
      • Object2NullableObjectHashMap

        public Object2NullableObjectHashMap​(int initialCapacity,
                                            float loadFactor,
                                            boolean shouldAvoidAllocation)
        Create a new instance with specified parameters.
        Parameters:
        initialCapacity - for the map to override Object2ObjectHashMap.MIN_CAPACITY
        loadFactor - for the map to override Hashing.DEFAULT_LOAD_FACTOR.
        shouldAvoidAllocation - should allocation be avoided by caching iterators and map entries.
      • Object2NullableObjectHashMap

        public Object2NullableObjectHashMap​(Object2ObjectHashMap<K,​V> mapToCopy)
        Copy construct a new map from an existing one.
        Parameters:
        mapToCopy - for construction.