T - type of valuespublic class LongMapRBT<T> extends Object implements LongMap<T>
| Constructor and Description |
|---|
LongMapRBT(int nbBuckets)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(long key)
Return true if the map contains the given key.
|
T |
get(long key)
Get a value.
|
protected int |
hash(long key) |
T |
put(long key,
T entry)
Put a value and return the previous value associated with this key, or null.
|
T |
remove(long key)
Remove a value.
|
int |
size()
Return the number of elements.
|
protected int hash(long key)
public T put(long key, T entry)
LongMappublic boolean containsKey(long key)
LongMapcontainsKey in interface LongMap<T>Copyright © 2018. All rights reserved.