public class IntIntHashMap extends HashBase
Modifier and Type | Field and Description |
---|---|
static int |
NOT_FOUND
The value indicating that the entry has not been found.
|
Constructor and Description |
---|
IntIntHashMap() |
Modifier and Type | Method and Description |
---|---|
int |
get(int key)
Get the value for the given key.
|
void |
put(int key,
int value)
Store the given key-value pair.
|
protected void |
rehash(int newLevel)
Increase the size of the underlying table and re-distribute the elements.
|
void |
remove(int key)
Remove the key-value pair with the given key.
|
protected void |
reset(int newLevel)
Clear the map and reset the level to the specified value.
|
checkSizeRemove, getIndex, size
public static final int NOT_FOUND
protected void reset(int newLevel)
HashBase
public void put(int key, int value)
key
- the keyvalue
- the value (-1 is not supported)public void remove(int key)
key
- the keyprotected void rehash(int newLevel)
HashBase
public int get(int key)
key
- the keyCopyright © 2012 JBoss by Red Hat. All Rights Reserved.