public class UintMap
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
getExistingInt(int key)
Get integer value assigned with key.
|
int |
getInt(int key,
int defaultValue)
Get integer value assigned with key.
|
int[] |
getKeys()
Return array of present keys
|
java.lang.Object |
getObject(int key)
Get object value assigned with key.
|
boolean |
has(int key) |
boolean |
isEmpty() |
void |
put(int key,
int value)
Set int value of the key.
|
void |
put(int key,
java.lang.Object value)
Set object value of the key.
|
void |
remove(int key) |
int |
size() |
public boolean isEmpty()
public int size()
public boolean has(int key)
public java.lang.Object getObject(int key)
public int getInt(int key, int defaultValue)
public int getExistingInt(int key)
java.lang.RuntimeException
- if key does not existpublic void put(int key, java.lang.Object value)
public void put(int key, int value)
public void remove(int key)
public void clear()
public int[] getKeys()