V - the value typepublic class ValueHashMap<V> extends HashBase
| Constructor and Description |
|---|
ValueHashMap() |
| Modifier and Type | Method and Description |
|---|---|
V |
get(Value key)
Get the value for this key.
|
ArrayList<Value> |
keys()
Get the list of keys.
|
static <T> ValueHashMap<T> |
newInstance()
Create a new value hash map.
|
void |
put(Value key,
V value)
Add or update a key value pair.
|
protected void |
rehash(int newLevel)
Increase the size of the underlying table and re-distribute the elements.
|
void |
remove(Value key)
Remove a key value pair.
|
protected void |
reset(int newLevel)
Clear the map and reset the level to the specified value.
|
ArrayList<V> |
values()
Get the list of values.
|
checkSizeRemove, getIndex, sizepublic static <T> ValueHashMap<T> newInstance()
protected void reset(int newLevel)
HashBaseprotected void rehash(int newLevel)
HashBasepublic void put(Value key, V value)
key - the keyvalue - the new valuepublic void remove(Value key)
key - the keypublic V get(Value key)
key - the keyCopyright © 2012 JBoss by Red Hat. All Rights Reserved.