| Constructor and Description |
|---|
TokenObjMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] key,
E val)
Indexes the specified keys and values.
|
int |
delete(byte[] key)
Deletes the specified key.
|
E |
get(byte[] key)
Returns the value for the specified key.
|
protected void |
rehash()
Resizes the hash table.
|
E |
value(int p)
Returns the specified value.
|
public void add(byte[] key,
E val)
key - keyval - valuepublic E get(byte[] key)
key - key to be foundnull if nothing was foundpublic E value(int p)
p - value indexpublic int delete(byte[] key)
TokenSetnull
entries, and the total number of entries will not reflect the number
of valid entries anymore.