Class HashMapLockFreeK1V1
java.lang.Object
io.deephaven.util.datastructures.hash.HashMapBase
io.deephaven.util.datastructures.hash.HashMapK1V1
io.deephaven.util.datastructures.hash.HashMapLockFreeK1V1
- All Implemented Interfaces:
gnu.trove.map.TLongLongMap
,TNullableLongLongMap
-
Constructor Summary
ConstructorDescriptionHashMapLockFreeK1V1
(int desiredInitialCapacity) HashMapLockFreeK1V1
(int desiredInitialCapacity, float loadFactor, long noEntryValue) -
Method Summary
Modifier and TypeMethodDescriptionfinal int
capacity()
final void
clear()
final long
get
(long key) final gnu.trove.iterator.TLongLongIterator
iterator()
final long[]
keys()
final long[]
keys
(long[] array) final long
put
(long key, long value) final long
putIfAbsent
(long key, long value) final long
remove
(long key) final void
protected void
setKeysAndValues
(long[] keysAndValues) final long[]
values()
final long[]
values
(long[] array) Methods inherited from class io.deephaven.util.datastructures.hash.HashMapK1V1
putImplNoTranslate
Methods inherited from class io.deephaven.util.datastructures.hash.HashMapBase
adjustOrPutValue, adjustValue, containsKey, containsValue, forEachEntry, forEachKey, forEachValue, getNoEntryKey, getNoEntryValue, increment, isEmpty, keySet, putAll, putAll, retainEntries, size, transformValues, valueCollection
-
Constructor Details
-
HashMapLockFreeK1V1
public HashMapLockFreeK1V1() -
HashMapLockFreeK1V1
public HashMapLockFreeK1V1(int desiredInitialCapacity) -
HashMapLockFreeK1V1
public HashMapLockFreeK1V1(int desiredInitialCapacity, float loadFactor, long noEntryValue)
-
-
Method Details
-
setKeysAndValues
protected void setKeysAndValues(long[] keysAndValues) - Specified by:
setKeysAndValues
in classHashMapBase
-
put
public final long put(long key, long value) -
putIfAbsent
public final long putIfAbsent(long key, long value) -
get
public final long get(long key) -
remove
public final long remove(long key) -
capacity
public final int capacity() -
clear
public final void clear() -
resetToNull
public final void resetToNull() -
keys
public final long[] keys() -
keys
public final long[] keys(long[] array) -
values
public final long[] values() -
values
public final long[] values(long[] array) -
iterator
public final gnu.trove.iterator.TLongLongIterator iterator()
-