Method Summary |
|
public int | addRef(Object id) Adds one reference to an object in the counter.
Parameters: id - is a unique ID for the object. |
public Object | get(Object id) Returns the object defined by an ID. |
public int | getRef(Object id) Parameters: id - is a unique ID for the object. |
public Set | keySet() Returns a complete list of the keys in the counter. |
public void | put(Object id, Object value) Adds an object to the counter for counting and gives
it an initial ref count of 1. |
public int | removeRef(Object id) Removes one reference from an object in the counter.
If the ref count drops to 0 the object is removed from
the counter completely.
Parameters: id - is a unique ID for the object. |
public List | values() Returns a complete list of the values in the counter. |