Method Summary |
|
public void | clear() Removes all mappings from this map . |
public Object | clone() Returns a clone of the Map.
throws: CloneNotSupportedException - if cloning is not supported. |
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 boolean | containsValue(Object value) Returns true if this map maps one or more keys to the specified 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 boolean | equals(Object o) Compares the specified object with this map for equality.
Returns true if the given object is also a ListMap and the two Maps represent the same mappings.
Parameters: o - object to be compared for equality with this map. |
public Object | get(Object key) Returns the value to which this map maps the specified key.
Returns null if the map contains no mapping for this key.
A return value of null does not necessarily indicate that the map contains no mapping for the key; it's also possible that the map explicitly maps the key to null.
The containsKey operation may be used to distinguish these two cases.
Parameters: key - key whose associated value is to be returned. |
public Object | getByIndex(int index) Returns the mapping at the specified index.
Parameters: index - The position at from which the mapping is to be retrieved. |
public int | hashCode() Returns the hash code value for this map. |
public int | indexOf(Object key) Returns the index in this Map of the specified key.
A '-1' is returned in case no such key exists.
Parameters: key - The key used for adding the object. |
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) Adds an object to the Map. |
public Object | put(int index, Object key, Object value) Adds an object to the Map. |
public void | putAll(Map t) Copies all of the mappings from the specified map to this map. |
public Object | remove(Object key) Removes the mapping for this key from this map if it is present.
Parameters: key - key whose mapping is to be removed from the map. |
public Object | remove(int index) Removes the mapping for this index from this map if it is present.
Parameters: index - The position at from which the mapping is to be removed. |
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. |