public class LongObjectHashMap<T> extends LongHashSet
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object[] |
values |
capacity, EMPTY, keys, maxSteps, REMOVED, size, sizeOffset, unsafe| Constructor and Description |
|---|
LongObjectHashMap(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
This method is not atomic and must not be invoked concurrently with other modification methods (e.g.,
LongHashSet.putKey(long) or LongHashSet.removeKey(long)) |
T |
get(long key) |
void |
put(long key,
T value) |
T |
remove(long key) |
T |
replace(long key,
T newValue) |
boolean |
replace(long key,
T oldValue,
T newValue) |
T |
replaceValueAt(int index,
T newValue) |
void |
setValueAt(int index,
T value) |
T |
valueAt(int index) |
capacity, decrementSize, getKey, hash, incrementSize, keyAt, putKey, removeKey, setKeyAt, size, sizeInBytespublic T get(long key)
public void put(long key,
T value)
public T remove(long key)
public final T valueAt(int index)
public final void setValueAt(int index,
T value)
public void clear()
LongHashSetLongHashSet.putKey(long) or LongHashSet.removeKey(long))clear in class LongHashSet