Class Int2NullableObjectHashMap<V>

java.lang.Object
org.agrona.collections.Int2ObjectHashMap<V>
org.agrona.collections.Int2NullableObjectHashMap<V>
Type Parameters:
V - type of values stored in the Map
All Implemented Interfaces:
Map<Integer,V>

public class Int2NullableObjectHashMap<V> extends Int2ObjectHashMap<V>
Variation of Int2ObjectHashMap that allows null values.
  • Constructor Details

    • Int2NullableObjectHashMap

      public Int2NullableObjectHashMap()
      Constructs map with default settings.
    • Int2NullableObjectHashMap

      public Int2NullableObjectHashMap(int initialCapacity, float loadFactor)
      Constructs map with given initial capacity and load factory and enables caching of iterators.
      Parameters:
      initialCapacity - for the backing array.
      loadFactor - limit for resizing on puts.
    • Int2NullableObjectHashMap

      public Int2NullableObjectHashMap(int initialCapacity, float loadFactor, boolean shouldAvoidAllocation)
      Construct a new map allowing a configuration for initial capacity and load factor.
      Parameters:
      initialCapacity - for the backing array
      loadFactor - limit for resizing on puts
      shouldAvoidAllocation - should allocation be avoided by caching iterators and map entries.
    • Int2NullableObjectHashMap

      public Int2NullableObjectHashMap(Int2ObjectHashMap<V> mapToCopy)
      Copy construct a new map from an existing one.
      Parameters:
      mapToCopy - for construction.
  • Method Details