|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectIntMap
Class to map primitive integers (int) to objects.
| Nested Class Summary |
| Nested classes inherited from class Map |
Map.Entry |
| Constructor Summary | |
IntMap()
Default constructor. |
|
IntMap(int initialCapacity)
Constructor to set the initial capacity. |
|
| Method Summary | |
void |
clear()
Clear the table. |
void |
clear(int initialCapacity)
Clear the table and recreate it with a new initial capacity. |
boolean |
containsKey(int key)
Returns true if the table contains the key. |
boolean |
containsKey(Object key)
Returns true if the table contains the key. |
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the specified value. |
Set |
entrySet()
Get the set of values. |
Object |
get(int key)
Get a value given the key. |
Object |
get(Object key)
Get a value given the key. |
boolean |
isEmpty()
Returns true if the tableis empty. |
Iterator |
keyIterator()
Return an iteration of keys. |
Set |
keySet()
Get the Set of keys. |
static void |
main(String[] arg)
|
Object |
put(int key,
Object value)
Put a key / value pair into the map. |
Object |
put(Object key,
Object value)
Put a key / value pair into the map. |
void |
putAll(Map m)
Put a Map into the table. |
Object |
remove(int key)
Remove a key / value from the table. |
Object |
remove(Object key)
Remove a key / value from the table. |
int |
size()
Return the number of elements in the table. |
String |
toString()
|
Collection |
values()
Get the values in the map as a Collection |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Map |
equals, hashCode |
| Constructor Detail |
public IntMap()
public IntMap(int initialCapacity)
initialCapacity - Initial capacity of the map.| Method Detail |
public void clear()
clear in interface Mappublic void clear(int initialCapacity)
initialCapacity - New initial capacity.public boolean containsKey(int key)
key - Key.
public boolean containsKey(Object key)
containsKey in interface Mapkey - Key Object (always in Integer).
public boolean containsValue(Object value)
containsValue in interface Mapvalue - Value.
public Set entrySet()
entrySet in interface Mappublic Object get(int key)
key - Key.
public Object get(Object key)
get in interface Mapkey - Key object (always an Integer).
public boolean isEmpty()
isEmpty in interface Mappublic Iterator keyIterator()
public Set keySet()
keySet in interface Mappublic static void main(String[] arg)
public Object put(int key,
Object value)
key - Key.value - Value.
public Object put(Object key,
Object value)
put in interface Mapkey - Key (of type Integer).value - Value.
public void putAll(Map m)
putAll in interface Mapm - Map to add to table.public Object remove(int key)
key - Key to remove.
public Object remove(Object key)
remove in interface Mapkey - Key to remove.
public int size()
size in interface Mappublic String toString()
public Collection values()
values in interface Map
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||