|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--harpoon.Util.Collections.UnmodifiableMultiMap
UnmodifiableMultiMap
is an abstract superclass to
save developers the trouble of implementing the various mutator
methds of the MultiMap
interface.
Nested Class Summary |
Nested classes inherited from class harpoon.Util.Collections.MultiMap |
MultiMap.Factory |
Nested classes inherited from class java.util.Map |
Map.Entry |
Constructor Summary | |
UnmodifiableMultiMap()
|
Method Summary | |
boolean |
add(Object key,
Object value)
Throws UnsupportedOperationException. |
boolean |
addAll(MultiMap mm)
Throws UnsupportedOperationException. |
boolean |
addAll(Object key,
Collection values)
Throws UnsupportedOperationException. |
void |
clear()
Throws UnsupportedOperationException. |
static MultiMap |
proxy(MultiMap mmap)
Constructs and returns an unmodifiable MultiMap
backed by mmap . |
Object |
put(Object key,
Object value)
Throws UnsupportedOperationException. |
void |
putAll(Map t)
Throws UnsupportedOperationException. |
Object |
remove(Object key)
Throws UnsupportedOperationException. |
boolean |
remove(Object key,
Object value)
Throws UnsupportedOperationException. |
boolean |
removeAll(Object key,
Collection values)
Throws UnsupportedOperationException. |
boolean |
retainAll(Object key,
Collection values)
Throws UnsupportedOperationException. |
Methods inherited from class java.util.AbstractMap |
clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface harpoon.Util.Collections.MultiMap |
contains, get, getValues, size |
Methods inherited from interface java.util.Map |
containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, values |
Constructor Detail |
public UnmodifiableMultiMap()
Method Detail |
public static MultiMap proxy(MultiMap mmap)
MultiMap
backed by mmap
.
public Object put(Object key, Object value)
put
in interface MultiMap
put
in class AbstractMap
public Object remove(Object key)
remove
in interface MultiMap
remove
in class AbstractMap
null
if Map
associated
no values with the key. Note that a zero-sized collection
is not returned in the latter case, and that a
null
return value may be ambiguous if the map
associated null
with the given key (in addition
to possibly other values).public boolean remove(Object key, Object value)
remove
in interface MultiMap
public void putAll(Map t)
putAll
in interface MultiMap
putAll
in class AbstractMap
public void clear()
clear
in interface Map
clear
in class AbstractMap
public boolean add(Object key, Object value)
add
in interface MultiMap
true
if this mapping changed as a result of
the callpublic boolean addAll(Object key, Collection values)
addAll
in interface MultiMap
true
if this mapping changed as a result
of the callpublic boolean addAll(MultiMap mm)
addAll
in interface MultiMap
public boolean retainAll(Object key, Collection values)
retainAll
in interface MultiMap
true
if this mapping changed as a result
of the callpublic boolean removeAll(Object key, Collection values)
removeAll
in interface MultiMap
true
if this mapping changed as a result
of the call
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |