Class LongObjectHashMap<T>
java.lang.Object
one.nio.mem.LongHashSet
one.nio.mem.LongObjectHashMap<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final intprotected final Object[]Fields inherited from class LongHashSet
capacity, EMPTY, keys, maxSteps, REMOVED, size, sizeOffset, unsafe -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()This method is not atomic and must not be invoked concurrently with other modification methods (e.g.,LongHashSet.putKey(long)orLongHashSet.removeKey(long))get(long key) private static longoffset(int index) voidremove(long key) booleanfinal TreplaceValueAt(int index, T newValue) final voidsetValueAt(int index, T value) final TvalueAt(int index) Methods inherited from class LongHashSet
capacity, decrementSize, getKey, hash, incrementSize, keyAt, putKey, removeKey, setKeyAt, size, sizeInBytes
-
Field Details
-
base
private static final long base -
shift
private static final int shift -
values
-
-
Constructor Details
-
LongObjectHashMap
public LongObjectHashMap(int capacity)
-
-
Method Details
-
get
-
put
-
replace
-
replace
-
remove
-
valueAt
-
setValueAt
-
replaceValueAt
-
clear
public void clear()Description copied from class:LongHashSetThis method is not atomic and must not be invoked concurrently with other modification methods (e.g.,LongHashSet.putKey(long)orLongHashSet.removeKey(long))- Overrides:
clearin classLongHashSet
-
offset
private static long offset(int index)
-