|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Map from long keys to object values.
Nested Class Summary | |
static interface |
LongMap.Entry
Represents the mapping from a long key to an object value. |
Method Summary | |
void |
clear()
Removes all the mappings. |
boolean |
containsKey(long key)
Returns true if this map contains mapping for the specified number; false otherwise. |
boolean |
containsValue(java.lang.Object value)
Returns true if this map contains mapping with the specified value; false otherwise. |
java.util.Set |
entrySet()
Returns the view of entries in this map, as a Set of LongMap.Entry elements. |
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(long key)
Retrieves the mapping for the specified number, or null if none. |
int |
hashCode()
|
boolean |
isEmpty()
Returns true if this map is empty; false otherwise. |
LongSet |
keySet()
Returns the view of keys in this map, as a LongSet. |
java.lang.Object |
put(long key,
java.lang.Object value)
Maps specified value to the given long key, and returns the value previously mapped for that key, or null if there were no mapping for that key before. |
void |
putAll(LongMap map)
Puts all mappings from the specified map into this map. |
java.lang.Object |
remove(long key)
Removes the mapping for the given key and returns the removed value, or null if there was no mapping for that key. |
int |
size()
Returns the number of entries in this map. |
java.util.Collection |
values()
Returns the read-only view of values in this map, as a Collection. |
Method Detail |
public int size()
public boolean isEmpty()
public boolean containsKey(long key)
public boolean containsValue(java.lang.Object value)
public java.lang.Object get(long key)
key
- the search key
public java.lang.Object put(long key, java.lang.Object value)
key
- the keyvalue
- the value
public java.lang.Object remove(long key)
key
- the key to remove the mapping for
public void putAll(LongMap map)
map
- the map to copy the mappings from.public void clear()
public LongSet keySet()
public java.util.Collection values()
public java.util.Set entrySet()
public boolean equals(java.lang.Object o)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |