Class BiInt2NullableObjectMap<V>

  • Type Parameters:
    V - type of values stored in the Map

    public class BiInt2NullableObjectMap<V>
    extends BiInt2ObjectMap<V>
    Variation of BiInt2ObjectMap that allows null values.
    • Constructor Detail

      • BiInt2NullableObjectMap

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

        public BiInt2NullableObjectMap​(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.
    • Method Detail

      • mapNullValue

        protected java.lang.Object mapNullValue​(java.lang.Object value)
        Description copied from class: BiInt2ObjectMap
        Interceptor for masking null values.
        Overrides:
        mapNullValue in class BiInt2ObjectMap<V>
        Parameters:
        value - value to mask.
        Returns:
        masked value.
      • unmapNullValue

        protected V unmapNullValue​(java.lang.Object value)
        Description copied from class: BiInt2ObjectMap
        Interceptor for unmasking null values.
        Overrides:
        unmapNullValue in class BiInt2ObjectMap<V>
        Parameters:
        value - value to unmask.
        Returns:
        unmasked value.