|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.util.HashMapList
public class HashMapList
A HashMap that maps from a source to a list of items for that source. This is useful as a searching mechanism where the list of searched items are catagorised in the mapped list.
Constructor Summary | |
---|---|
HashMapList()
Constructs the map. |
Method Summary | |
---|---|
java.util.List |
clear(java.lang.Object key)
Clears the all the values for the given key. |
boolean |
containsKey(java.lang.Object key)
Returns true if the map contains the key. |
java.util.List |
get(java.lang.Object key)
Returns the list of values that are in the map under this key. |
java.util.Set |
keySet()
The Set of all keys. |
void |
put(java.lang.Object key,
java.lang.Object val)
Puts a value into the map list. |
boolean |
remove(java.lang.Object key,
java.lang.Object val)
Removes the given value from the list with the given key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HashMapList()
Method Detail |
---|
public void put(java.lang.Object key, java.lang.Object val)
public java.util.List get(java.lang.Object key)
public boolean remove(java.lang.Object key, java.lang.Object val)
public java.util.List clear(java.lang.Object key)
public java.util.Set keySet()
public boolean containsKey(java.lang.Object key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |