|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
common.HashMultiMapDiff
common.IndexedMultiMapDiff
public class IndexedMultiMapDiff
A MultiMapDiff implementation that also implements the IndexedMultiMap interface. It is just like HashMultiMapDiff, except that it uses IndexedHashSetDiff objects rather than ordinary HashSetDiff objects.
Nested Class Summary | |
---|---|
protected class |
IndexedMultiMapDiff.IndexedValueSet
|
Nested classes/interfaces inherited from class common.HashMultiMapDiff |
---|
HashMultiMapDiff.ValueSet |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface common.IndexedMultiMap |
---|
IndexedMultiMap.EmptyIndexedMultiMap |
Nested classes/interfaces inherited from interface common.MultiMap |
---|
MultiMap.EmptyMultiMap |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from interface common.IndexedMultiMap |
---|
EMPTY_INDEXED_MULTI_MAP |
Fields inherited from interface common.MultiMap |
---|
EMPTY_MULTI_MAP |
Constructor Summary | |
---|---|
IndexedMultiMapDiff(IndexedMultiMap underlying)
Creates a new IndexedMultiMapDiff with the given underlying IndexedMultiMap. |
Method Summary | |
---|---|
protected java.util.Set |
emptySet()
|
java.lang.Object |
get(java.lang.Object key)
Returns the set associated with the given key. |
protected SetDiff |
newDiff(java.util.Set orig)
|
Methods inherited from class common.HashMultiMapDiff |
---|
add, addAll, changeUnderlying, clear, clearChanges, clone, containsKey, entrySet, getAddedValues, getChangedKeys, getCurrent, getRemovedValues, put, remove, remove, removeAll, size |
Methods inherited from class java.util.AbstractMap |
---|
containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface common.MultiMap |
---|
add, addAll, put, remove, removeAll |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values |
Constructor Detail |
---|
public IndexedMultiMapDiff(IndexedMultiMap underlying)
Method Detail |
---|
public java.lang.Object get(java.lang.Object key)
MultiMap
put
method is called or if all the values for the
given key are removed.
get
in interface MultiMap
get
in interface java.util.Map
get
in class HashMultiMapDiff
protected java.util.Set emptySet()
emptySet
in class HashMultiMapDiff
protected SetDiff newDiff(java.util.Set orig)
newDiff
in class HashMultiMapDiff
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |