|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
jwutil.collections.UnmodifiableMultiMap
public abstract class 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/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary | |
|---|---|
static int |
DEFAULT_HISTOGRAM_SIZE
|
| Constructor Summary | |
|---|---|
UnmodifiableMultiMap()
|
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object key,
java.lang.Object value)
Throws UnsupportedOperationException. |
boolean |
addAll(MultiMap mm)
Throws UnsupportedOperationException. |
boolean |
addAll(java.lang.Object key,
java.util.Collection values)
Throws UnsupportedOperationException. |
void |
clear()
Throws UnsupportedOperationException. |
static java.lang.String |
computeHistogram(MultiMap dis,
int size,
java.lang.String keyName,
java.lang.String valueName)
|
java.lang.String |
computeHistogram(java.lang.String keyName,
java.lang.String valueName)
|
abstract java.util.Set |
entrySet()
Returns a Set view that allows you to recapture
the MultiMap view. |
protected java.util.Set |
entrySetHelper(java.util.Set keys)
|
static MultiMap |
proxy(MultiMap mmap)
Constructs and returns an unmodifiable MultiMap
backed by mmap. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Throws UnsupportedOperationException. |
void |
putAll(java.util.Map t)
Throws UnsupportedOperationException. |
java.lang.Object |
remove(java.lang.Object key)
Throws UnsupportedOperationException. |
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Throws UnsupportedOperationException. |
boolean |
removeAll(java.lang.Object key,
java.util.Collection values)
Throws UnsupportedOperationException. |
boolean |
retainAll(java.lang.Object key,
java.util.Collection values)
Throws UnsupportedOperationException. |
| Methods inherited from class java.util.AbstractMap |
|---|
clone, containsKey, containsValue, 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 jwutil.collections.MultiMap |
|---|
contains, get, getValues, size |
| Methods inherited from interface java.util.Map |
|---|
containsKey, containsValue, equals, hashCode, isEmpty, keySet, values |
| Field Detail |
|---|
public static final int DEFAULT_HISTOGRAM_SIZE
| Constructor Detail |
|---|
public UnmodifiableMultiMap()
| Method Detail |
|---|
public static MultiMap proxy(MultiMap mmap)
MultiMap
backed by mmap.
public abstract java.util.Set entrySet()
Set view that allows you to recapture
the MultiMap view.
entrySet in interface java.util.MapentrySet in interface MultiMapentrySet in class java.util.AbstractMapprotected java.util.Set entrySetHelper(java.util.Set keys)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in interface MultiMapput in class java.util.AbstractMappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in interface MultiMapremove in class java.util.AbstractMapnull 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(java.lang.Object key,
java.lang.Object value)
remove in interface MultiMappublic void putAll(java.util.Map t)
putAll in interface java.util.MapputAll in interface MultiMapputAll in class java.util.AbstractMappublic void clear()
clear in interface java.util.Mapclear in class java.util.AbstractMap
public boolean add(java.lang.Object key,
java.lang.Object value)
add in interface MultiMaptrue if this mapping changed as a result of
the call
public boolean addAll(java.lang.Object key,
java.util.Collection values)
addAll in interface MultiMaptrue if this mapping changed as a result
of the callpublic boolean addAll(MultiMap mm)
addAll in interface MultiMap
public boolean retainAll(java.lang.Object key,
java.util.Collection values)
retainAll in interface MultiMaptrue if this mapping changed as a result
of the call
public boolean removeAll(java.lang.Object key,
java.util.Collection values)
removeAll in interface MultiMaptrue if this mapping changed as a result
of the call
public java.lang.String computeHistogram(java.lang.String keyName,
java.lang.String valueName)
computeHistogram in interface MultiMap
public static java.lang.String computeHistogram(MultiMap dis,
int size,
java.lang.String keyName,
java.lang.String valueName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||