Method Summary |
|
public void | clear() Method to empty the HashMap. |
public Object | clone() Clone method. |
public boolean | containsKey(Object obj) |
public boolean | containsValue(Object obj) Accessor for whether the Map contains the specified value. |
public Set | entrySet() Accessor for the entry set. |
public boolean | equals(Object o) Equality operator.
Parameters: o - THe object to compare against. |
public Object | get(Object key) Method to get a value for a key. |
public int | hashCode() Hashcode generator for this object. |
public boolean | isEmpty() Accessor for whether the Map is empty. |
public Set | keySet() Accessor for the Set of keys in the Map. |
abstract protected ValueReference | newValueReference(Object key, Object value, ReferenceQueue queue) Returns a new Reference object to be inserted into the map.
Subclasses must implement this method to construct Reference
objects of the desired type (e.g. |
public Object | put(Object key, Object value) Method to add an object to the Map. |
public void | putAll(Map m) Method to add the contents of a Map. |
public void | reap() Utility method to reap objects. |
public Object | remove(Object key) Method to remove an object for the specified key. |
public int | size() Accessor for the size of the HashMap. |
public Collection | values() Accessor for the values from the Map. |