|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.common.util.LongLongHashMap
public class LongLongHashMap
Fast HashMap for primitive data. Optimized for being GC friendly. Original code is based on the skorpios project released under new BSD license.
IntObjectHashMap
,
IntLongHashMap
,
LongObjectHashMap
,
IntIntHashMap
,
LongIntHashMap
Nested Class Summary | |
---|---|
static class |
LongLongHashMap.Entry
An entry mapping a key to a value. |
Constructor Summary | |
---|---|
LongLongHashMap()
|
|
LongLongHashMap(int initialCapacity)
|
|
LongLongHashMap(int initialCapacity,
float loadFactor)
|
Method Summary | |
---|---|
void |
clear()
Clears the entire map. |
boolean |
containsKey(long key)
|
boolean |
containsValue(long value)
|
long |
get(long key)
Returns the value to which the specified key is mapped, or getKeyNotFoundValue() if this map contains no mapping for the key. |
long |
getKeyNotFoundValue()
Returns the value which is returned if no value has been found for the specified key. |
Iterator<LongLongHashMap.Entry> |
iterator()
Returns a new Iterator . |
long |
put(long key,
long value)
Maps the key to the specified value. |
void |
putAll(LongLongHashMap source)
Copies all of the mappings from the specified map to this map. |
long |
remove(long key)
Removes the key-value mapping from this map. |
long |
setKeyNotFoundValue(long newKeyNotFoundValue)
Sets the new key not found value. |
int |
size()
Returns the current number of key-value mappings in this map. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LongLongHashMap()
public LongLongHashMap(int initialCapacity)
public LongLongHashMap(int initialCapacity, float loadFactor)
Method Detail |
---|
public boolean containsValue(long value)
public boolean containsKey(long key)
public long get(long key)
getKeyNotFoundValue()
if this map contains no mapping for the key.
public long put(long key, long value)
getKeyNotFoundValue()
).
public void putAll(LongLongHashMap source)
public long remove(long key)
getKeyNotFoundValue()
if no such mapping exists.
public int size()
public void clear()
public Iterator<LongLongHashMap.Entry> iterator()
Iterator
.
Note: this Iterator does not yet support removal of elements.
iterator
in interface Iterable
public long setKeyNotFoundValue(long newKeyNotFoundValue)
get(long)
,
put(long, long)
public long getKeyNotFoundValue()
get(long)
,
put(long, long)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |