Method Summary |
|
public synchronized void | clear() Removes all of the elements from this map. |
public boolean | containsKey(Object key) Returns
true if this map contains a mapping for the specified key.
Parameters: key - key whose presence in this map is to be tested. |
public synchronized boolean | containsValue(Object value) Returns
true if this map maps one or more keys to this value.
Parameters: value - value whose presence in this map is to be tested. |
public Set | entrySet() Returns a set view of the mappings contained in this map. |
public synchronized Object | get(Object key) Returns the value to which this map maps the specified key. |
public Object | put(Object key, Object value) Associates the specified value with the specified key in this map.
The value is associated using a
WeakReference .
Parameters: key - key with which the specified value is to be associated. Parameters: value - value to be associated with the specified key. |
public Object | remove(Object key) Removes the mapping for this key from this map if present.
Parameters: key - key whose mapping is to be removed from the map. |
public synchronized int | size() Returns the number of key-value mappings in this map. |