java.lang.Objectjavax.baja.nre.util.LongHashMap
LongHashMap is an optimized hashtable for hashing objects by a long key. It removes the need to use wrapper Long as with the standard collection classes.
| Nested Class Summary | |
class |
LongHashMap.Iterator
|
| Constructor Summary | |
LongHashMap()
Default constructor. |
|
LongHashMap(int initialCapacity)
Constructor with initial capacity. |
|
LongHashMap(int initialCapacity,
float loadFactor)
Constructor with initial 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 |
equals(java.lang.Object obj)
Return if the specified object another LongHashMap with the exact same key-value pairs. |
java.lang.Object |
get(long key)
Get the object identified by the given long key. |
boolean |
isEmpty()
|
LongHashMap.Iterator |
iterator()
|
java.lang.Object |
put(long key,
java.lang.Object value)
Put the given object into the table keyed on the long. |
java.lang.Object |
remove(long 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 LongHashMap()
public LongHashMap(int initialCapacity)
public LongHashMap(int initialCapacity,
float loadFactor)
| Method Detail |
public int size()
public boolean isEmpty()
public LongHashMap.Iterator iterator()
public java.lang.Object get(long key)
public java.lang.Object put(long key,
java.lang.Object value)
public java.lang.Object remove(long 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.