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 |
|---|---|
void |
clear()
Clear all elements of this map.
|
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) |
boolean |
isEmpty()
Return true if this map is empty.
|
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.
|
Iterator<T> |
values()
Iterates on values.
|
protected int hash(long key)
public T put(long key, T entry)
LongMappublic boolean containsKey(long key)
LongMapcontainsKey in interface LongMap<T>public int size()
PrimitiveMapsize in interface PrimitiveMap<T>public boolean isEmpty()
PrimitiveMapisEmpty in interface PrimitiveMap<T>public void clear()
PrimitiveMapclear in interface PrimitiveMap<T>public Iterator<T> values()
PrimitiveMapvalues in interface PrimitiveMap<T>Copyright © 2019. All rights reserved.