|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MultiMap is an interface designed for Objects that associate multiple values with a single key.
bindings
: set[(Object, Collection)] //the connections stored
by this map
keys
: set[Objects] //the keys in this MultiMap
values
: set[Objects] //the values Method Summary | |
void |
clear()
Removes all bindings maintained by this map |
boolean |
contains(Object key,
Object value)
Returns true iff this mapping maps key to value |
boolean |
containsKey(Object key)
Checks to see if this map contains any bindings for key |
boolean |
containsValue(Object value)
Checks to see if this map contains any bindings to this value |
boolean |
equals(Object o)
Compares the specified Object with this map for equality |
Collection |
getAll(Object key)
Returns an unmodifiable Collection snapshot of all mappings from key |
boolean |
isEmpty()
Returns true iff this mapping contains no associations |
void |
putAll(Object key,
Collection values)
Adds an association from key to each value contained by values |
boolean |
remove(Object key,
Object value)
Removes a binding from key to value. |
Method Detail |
public boolean contains(Object key, Object value)
public Collection getAll(Object key)
public void putAll(Object key, Collection values)
public boolean remove(Object key, Object value)
public boolean isEmpty()
public boolean equals(Object o)
equals
in class Object
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |