|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.util.WeakIdentityMap<K,V>
K - the key typeV - the value typepublic class WeakIdentityMap<K,V>
A map that with weak keys that are compared for identity.
| Constructor Summary | |
|---|---|
WeakIdentityMap()
Creates an instance of this class. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all associations from this map. |
boolean |
containsKey(K key)
Checks if the map contains the specified key. |
V |
get(Object key)
Returns the value associated with given key, or null if the key
is not found. |
V |
put(K key,
V value)
Associates a value with given key, returning the value previously associated with key, or null if none is found. |
V |
remove(Object key)
Removes the association for the given key, returning the value previously associated with the key, or null if the key is not
found. |
Collection<V> |
values()
Returns collection containing all values currently held in this map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeakIdentityMap()
| Method Detail |
|---|
public V put(K key,
V value)
null if none is found.
key - the keyvalue - the value
nullpublic boolean containsKey(K key)
key - the key
true if the map contains the key, else falsepublic V get(Object key)
null if the key
is not found.
key - the key
nullpublic V remove(Object key)
null if the key is not
found.
key - the key
nullpublic Collection<V> values()
public void clear()
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||