Class HashMapBase
java.lang.Object
io.deephaven.util.datastructures.hash.HashMapBase
- All Implemented Interfaces:
NullableLongLongMap
- Direct Known Subclasses:
HashMapK1V1,HashMapK2V2,HashMapK4V4
-
Method Summary
Modifier and TypeMethodDescriptionfinal longfinal booleanisEmpty()protected abstract longputImplNoTranslate(long[] kvs, long key, long value, boolean insertOnly) protected abstract voidsetKeysAndValues(long[] keysAndValues) final intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.util.datastructures.hash.NullableLongLongMap
capacity, clear, forEach, get, put, putIfAbsent, remove, resetToNull
-
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:
sizein interfaceNullableLongLongMap- Returns:
- the size of this map
-
isEmpty
public final boolean isEmpty()- Specified by:
isEmptyin interfaceNullableLongLongMap- Returns:
- true if this map is empty (i.e. size is zero)
-
defaultReturnValue
public final long defaultReturnValue()- Specified by:
defaultReturnValuein interfaceNullableLongLongMap- Returns:
- the value returned from
NullableLongLongMap.get(long)when no value is present in the map.
-