|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.common.collect.ForwardingObject com.google.common.collect.ForwardingMultimap<K,V> com.google.common.collect.ForwardingSetMultimap<K,V> com.google.common.collect.ForwardingSortedSetMultimap<K,V>
@GwtCompatible public abstract class ForwardingSortedSetMultimap<K,V>
A sorted set multimap which forwards all its method calls to another sorted set multimap. Subclasses should override one or more methods to modify the behavior of the backing multimap as desired per the decorator pattern.
Constructor Summary | |
---|---|
protected |
ForwardingSortedSetMultimap()
Constructor for use by subclasses. |
Method Summary | |
---|---|
protected abstract SortedSetMultimap<K,V> |
delegate()
Returns the backing delegate instance that methods are forwarded to. |
SortedSet<V> |
get(K key)
Returns a collection view of all values associated with a key. |
SortedSet<V> |
removeAll(Object key)
Removes all values associated with a given key. |
SortedSet<V> |
replaceValues(K key,
Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key. |
Comparator<? super V> |
valueComparator()
Returns the comparator that orders the multimap values, with null
indicating that natural ordering is used. |
Methods inherited from class com.google.common.collect.ForwardingSetMultimap |
---|
entries |
Methods inherited from class com.google.common.collect.ForwardingMultimap |
---|
asMap, clear, containsEntry, containsKey, containsValue, equals, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, values |
Methods inherited from class com.google.common.collect.ForwardingObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.common.collect.SortedSetMultimap |
---|
asMap |
Methods inherited from interface com.google.common.collect.SetMultimap |
---|
entries, equals |
Methods inherited from interface com.google.common.collect.Multimap |
---|
clear, containsEntry, containsKey, containsValue, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, values |
Constructor Detail |
---|
protected ForwardingSortedSetMultimap()
Method Detail |
---|
protected abstract SortedSetMultimap<K,V> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.
delegate
in class ForwardingSetMultimap<K,V>
public SortedSet<V> get(@Nullable K key)
Multimap
Changes to the returned collection will update the underlying multimap, and vice versa.
get
in interface Multimap<K,V>
get
in interface SetMultimap<K,V>
get
in interface SortedSetMultimap<K,V>
get
in class ForwardingSetMultimap<K,V>
key
- key to search for in multimap
public SortedSet<V> removeAll(@Nullable Object key)
Multimap
removeAll
in interface Multimap<K,V>
removeAll
in interface SetMultimap<K,V>
removeAll
in interface SortedSetMultimap<K,V>
removeAll
in class ForwardingSetMultimap<K,V>
key
- key of entries to remove from the multimap
public SortedSet<V> replaceValues(K key, Iterable<? extends V> values)
Multimap
replaceValues
in interface Multimap<K,V>
replaceValues
in interface SetMultimap<K,V>
replaceValues
in interface SortedSetMultimap<K,V>
replaceValues
in class ForwardingSetMultimap<K,V>
key
- key to store in the multimapvalues
- values to store in the multimap
public Comparator<? super V> valueComparator()
SortedSetMultimap
null
indicating that natural ordering is used.
valueComparator
in interface SortedSetMultimap<K,V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |