Class HashMapBase
java.lang.Object
io.deephaven.util.datastructures.hash.HashMapBase
- All Implemented Interfaces:
gnu.trove.map.TLongLongMap
,TNullableLongLongMap
- Direct Known Subclasses:
HashMapK1V1
,HashMapK2V2
,HashMapK4V4
-
Method Summary
Modifier and TypeMethodDescriptionlong
adjustOrPutValue
(long key, long adjust_amount, long put_amount) boolean
adjustValue
(long key, long amount) boolean
containsKey
(long key) boolean
containsValue
(long val) boolean
forEachEntry
(gnu.trove.procedure.TLongLongProcedure procedure) boolean
forEachKey
(gnu.trove.procedure.TLongProcedure procedure) boolean
forEachValue
(gnu.trove.procedure.TLongProcedure procedure) final long
final long
boolean
increment
(long key) final boolean
isEmpty()
gnu.trove.set.TLongSet
keySet()
void
putAll
(gnu.trove.map.TLongLongMap map) void
protected abstract long
putImplNoTranslate
(long[] kvs, long key, long value, boolean insertOnly) boolean
retainEntries
(gnu.trove.procedure.TLongLongProcedure procedure) protected abstract void
setKeysAndValues
(long[] keysAndValues) final int
size()
void
transformValues
(gnu.trove.function.TLongFunction function) gnu.trove.TLongCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gnu.trove.map.TLongLongMap
clear, get, iterator, keys, keys, put, putIfAbsent, remove, values, values
Methods inherited from interface io.deephaven.util.datastructures.hash.TNullableLongLongMap
capacity, 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:
size
in interfacegnu.trove.map.TLongLongMap
-
isEmpty
public final boolean isEmpty()- Specified by:
isEmpty
in interfacegnu.trove.map.TLongLongMap
-
getNoEntryKey
public final long getNoEntryKey()- Specified by:
getNoEntryKey
in interfacegnu.trove.map.TLongLongMap
-
getNoEntryValue
public final long getNoEntryValue()- Specified by:
getNoEntryValue
in interfacegnu.trove.map.TLongLongMap
-
increment
public boolean increment(long key) - Specified by:
increment
in interfacegnu.trove.map.TLongLongMap
-
adjustValue
public boolean adjustValue(long key, long amount) - Specified by:
adjustValue
in interfacegnu.trove.map.TLongLongMap
-
adjustOrPutValue
public long adjustOrPutValue(long key, long adjust_amount, long put_amount) - Specified by:
adjustOrPutValue
in interfacegnu.trove.map.TLongLongMap
-
containsValue
public boolean containsValue(long val) - Specified by:
containsValue
in interfacegnu.trove.map.TLongLongMap
-
containsKey
public boolean containsKey(long key) - Specified by:
containsKey
in interfacegnu.trove.map.TLongLongMap
-
keySet
public gnu.trove.set.TLongSet keySet()- Specified by:
keySet
in interfacegnu.trove.map.TLongLongMap
-
forEachKey
public boolean forEachKey(gnu.trove.procedure.TLongProcedure procedure) - Specified by:
forEachKey
in interfacegnu.trove.map.TLongLongMap
-
forEachValue
public boolean forEachValue(gnu.trove.procedure.TLongProcedure procedure) - Specified by:
forEachValue
in interfacegnu.trove.map.TLongLongMap
-
forEachEntry
public boolean forEachEntry(gnu.trove.procedure.TLongLongProcedure procedure) - Specified by:
forEachEntry
in interfacegnu.trove.map.TLongLongMap
-
transformValues
public void transformValues(gnu.trove.function.TLongFunction function) - Specified by:
transformValues
in interfacegnu.trove.map.TLongLongMap
-
retainEntries
public boolean retainEntries(gnu.trove.procedure.TLongLongProcedure procedure) - Specified by:
retainEntries
in interfacegnu.trove.map.TLongLongMap
-
putAll
- Specified by:
putAll
in interfacegnu.trove.map.TLongLongMap
-
putAll
public void putAll(gnu.trove.map.TLongLongMap map) - Specified by:
putAll
in interfacegnu.trove.map.TLongLongMap
-
valueCollection
public gnu.trove.TLongCollection valueCollection()- Specified by:
valueCollection
in interfacegnu.trove.map.TLongLongMap
-