Method Summary |
|
abstract protected Object | baseToDerived(Object key) Transforms a key from the
map to a key in this map.
If there is no key in the derived map for the specified base key,
then this method returns
null .
Parameters: key - A ley from the map. |
public boolean | containsKey(Object key) Returns
true if this map contains a mapping for the specified key.
The default implementation invokes
.containsKey(
(key)) .
Parameters: key - key whose presence in this map is to be tested. |
public boolean | containsValue(Object value) Returns
true if this map maps one or more keys to this value. |
abstract protected Object | derivedToBase(Object key) Transforms a key from this derived map to a key in the
map.
Parameters: key - A key in this map. |
public Set | entrySet() Returns a set view of the mappings contained in this map. |
public Object | get(Object key) Returns the value to which this map maps the specified key.
The default implementation invokes
.get(
(key)) .
Parameters: key - key whose associated value is to be returned. |
public boolean | isEmpty() Returns
true if this map contains no key-value mappings. |
public Set | keySet() Returns a set view of the keys contained in this map. |
public Object | put(Object key, Object value) Associates the specified value with the specified key in this map.
The default implementation invokes
.put(
(key), value) .
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.
The default implementation invokes
.remove(
(key)) .
Parameters: key - key whose mapping is to be removed from the map. |
public int | size() Returns the number of key-value mappings in this map. |
public Collection | values() Returns a collection view of the values contained in this map. |