|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.util.HashBase
org.h2.util.ValueHashMap<V>
V - the value typepublic class ValueHashMap<V>
This hash map supports keys of type Value.
| Field Summary |
|---|
| Fields inherited from class org.h2.util.HashBase |
|---|
deletedCount, len, level, mask, size, zeroKey |
| Constructor Summary | |
|---|---|
ValueHashMap()
|
|
| Method Summary | ||
|---|---|---|
V |
get(Value key)
Get the value for this key. |
|
java.util.ArrayList<Value> |
keys()
Get the list of keys. |
|
static
|
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. |
|
java.util.ArrayList<V> |
values()
Get the list of values. |
|
| Methods inherited from class org.h2.util.HashBase |
|---|
checkSizeRemove, getIndex, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueHashMap()
| Method Detail |
|---|
public static <T> ValueHashMap<T> newInstance()
protected void reset(int newLevel)
HashBase
reset in class HashBasenewLevel - the new levelprotected void rehash(int newLevel)
HashBase
rehash in class HashBasenewLevel - the new level
public 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 key
public java.util.ArrayList<Value> keys()
public java.util.ArrayList<V> values()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||