Class HashMapBase

java.lang.Object
io.deephaven.util.datastructures.hash.HashMapBase
All Implemented Interfaces:
NullableLongLongMap
Direct Known Subclasses:
HashMapK1V1, HashMapK2V2, HashMapK4V4

public abstract class HashMapBase extends Object implements NullableLongLongMap
  • Method Details

    • putImplNoTranslate

      protected abstract long putImplNoTranslate(long[] kvs, long key, long value, boolean insertOnly)
    • setKeysAndValues

      protected abstract void setKeysAndValues(long[] keysAndValues)
    • size

      public final int size()
      Specified by:
      size in interface NullableLongLongMap
      Returns:
      the size of this map
    • isEmpty

      public final boolean isEmpty()
      Specified by:
      isEmpty in interface NullableLongLongMap
      Returns:
      true if this map is empty (i.e. size is zero)
    • defaultReturnValue

      public final long defaultReturnValue()
      Specified by:
      defaultReturnValue in interface NullableLongLongMap
      Returns:
      the value returned from NullableLongLongMap.get(long) when no value is present in the map.