gnu.kawa.util
public class GeneralHashTable extends Object
| Field Summary | |
|---|---|
| protected int | mask |
| protected int | num_bindings |
| protected HashNode[] | table |
| Constructor Summary | |
|---|---|
| GeneralHashTable() | |
| GeneralHashTable(int capacity) | |
| Method Summary | |
|---|---|
| void | clear() |
| Object | get(Object key, Object defaultValue) |
| HashNode | getNode(Object key) |
| int | hash(Object key) Calculate hash code of a key.
|
| int | hash(HashNode node) |
| protected HashNode | makeEntry(Object key, int hash, Object value) Allocate a new node in the hash table. |
| boolean | matches(Object key, int hash, HashNode node) |
| boolean | matches(Object value1, Object value2) Compare two keys for equivalence.
|
| protected static HashNode | next(HashNode node) |
| Object | put(Object key, Object value) |
| Object | put(Object key, int hash, Object value) |
| protected void | rehash() |
| Object | remove(Object key) |
| int | size() |
matches method.