| java.util.Hashtable fri.util.collections.AggregatingHashtable
All known Subclasses: fri.util.collections.UniqueAggregatingHashtable,
AggregatingHashtable | public class AggregatingHashtable extends Hashtable (Code) | | A hashtable that holds a list of values instead of a single value for one key.
In any case the get(Object) method returns a List (Vector) of values.
Every new put() call adds to the list of values. The remove()
call removes the whole list of values at once.
author: Fritz Ritzberger |
Method Summary | |
protected List | createAggregationList() To be overridden for allocation of special aggregation List types. | public Object | put(Object key, Object value) Puts the passed value into a List (Vector) for given key, creates the list when necessary. | public void | replace(Object key, List newList) Replaces the list of objects for a key by a new list, overriding aggregation. | protected boolean | shouldAdd(List list, Object value) To be overridden for filtering values. |
AggregatingHashtable | public AggregatingHashtable()(Code) | | |
AggregatingHashtable | public AggregatingHashtable(int initialCapacity)(Code) | | |
createAggregationList | protected List createAggregationList()(Code) | | To be overridden for allocation of special aggregation List types.
|
put | public Object put(Object key, Object value)(Code) | | Puts the passed value into a List (Vector) for given key, creates the list when necessary.
null if list was not yet existent, else the found list. |
replace | public void replace(Object key, List newList)(Code) | | Replaces the list of objects for a key by a new list, overriding aggregation.
|
shouldAdd | protected boolean shouldAdd(List list, Object value)(Code) | | To be overridden for filtering values.
|
|
|