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