java.lang.Objectjavax.baja.nre.util.IntHashMap
IntHashMap is an optimized hashtable for hashing objects by an integer keys. It removes the need to use wrapper Integers as with the standard collection classes.
| Nested Class Summary | |
class |
IntHashMap.Iterator
|
| Constructor Summary | |
IntHashMap()
Default constructor. |
|
IntHashMap(int initialCapacity)
Constructor with initial capacity. |
|
IntHashMap(int initialCapacity,
float loadFactor)
Constructor with capacity and load factor. |
|
| Method Summary | |
void |
clear()
Clear the hashtable of entries. |
java.lang.Object |
clone()
Clone the IntHashMap into a new instance. |
boolean |
containsKey(int key)
Get whether the specified key value is defined within the map. |
boolean |
equals(java.lang.Object obj)
Return if the specified object another IntHashMap with the exact same key-value pairs. |
java.lang.Object |
get(int key)
Get the object identified by the given int key. |
boolean |
isEmpty()
|
IntHashMap.Iterator |
iterator()
|
java.lang.Object |
put(int key,
java.lang.Object value)
Put the given object into the table keyed on the int. |
java.lang.Object |
remove(int key)
Remove the vaulue identified by the key. |
int |
size()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
Get an array containing all values in hash table. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IntHashMap()
public IntHashMap(int initialCapacity)
public IntHashMap(int initialCapacity,
float loadFactor)
| Method Detail |
public int size()
public boolean isEmpty()
public IntHashMap.Iterator iterator()
public java.lang.Object get(int key)
public boolean containsKey(int key)
public java.lang.Object put(int key,
java.lang.Object value)
public java.lang.Object remove(int key)
public void clear()
public boolean equals(java.lang.Object obj)
public java.lang.Object clone()
public java.lang.Object[] toArray(java.lang.Object[] a)
Copyright © 2000-2016 Tridium Inc. All rights reserved.