|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.util.LongMap<K>
public class LongMap<K>
The IntMap provides a simple hashmap from keys to integers. The API is an abbreviation of the HashMap collection API.
The convenience of IntMap is avoiding all the silly wrapping of integers.
Field Summary | |
---|---|
static long |
NULL
Encoding of a null entry. |
Constructor Summary | |
---|---|
LongMap()
Create a new LongMap. |
Method Summary | |
---|---|
void |
clear()
Clear the hashmap. |
java.lang.Object |
clone()
|
long |
get(K key)
Puts a new value in the property table with the appropriate flags |
java.util.Iterator |
iterator()
Returns an iterator of the keys. |
long |
put(K key,
long value)
Puts a new value in the property table with the appropriate flags |
long |
putIfNew(K key,
long value)
Puts a new value in the property table with the appropriate flags |
long |
remove(K key)
Deletes the entry. |
int |
size()
Returns the current number of entries in the map. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long NULL
Constructor Detail |
---|
public LongMap()
Method Detail |
---|
public void clear()
public int size()
public long get(K key)
public long put(K key, long value)
public long putIfNew(K key, long value)
public long remove(K key)
public java.util.Iterator iterator()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |