Package one.nio.mem
Class LongObjectHashMap<T>
- java.lang.Object
-
- one.nio.mem.LongHashSet
-
- one.nio.mem.LongObjectHashMap<T>
-
public class LongObjectHashMap<T> extends LongHashSet
-
-
Constructor Summary
Constructors Constructor Description LongObjectHashMap(int capacity)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()This method is not atomic and must not be invoked concurrently with other modification methods (e.g.,LongHashSet.putKey(long)orLongHashSet.removeKey(long))Tget(long key)private static longoffset(int index)voidput(long key, T value)Tremove(long key)Treplace(long key, T newValue)booleanreplace(long key, T oldValue, T newValue)TreplaceValueAt(int index, T newValue)voidsetValueAt(int index, T value)TvalueAt(int index)-
Methods inherited from class one.nio.mem.LongHashSet
capacity, decrementSize, getKey, hash, incrementSize, keyAt, putKey, removeKey, setKeyAt, size, sizeInBytes
-
-
-
-
Method Detail
-
get
public T get(long key)
-
put
public void put(long key, T value)
-
remove
public T remove(long key)
-
valueAt
public final T valueAt(int index)
-
setValueAt
public final void setValueAt(int index, T value)
-
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)
-
-