@GwtCompatible public abstract class ForwardingSortedSetMultimap<K,V> extends ForwardingSetMultimap<K ,V> implements SortedSetMultimap <K ,V>
| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingSortedSetMultimap()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract SortedSetMultimap |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
SortedSet |
get(K key)
Returns a view collection of the values associated with
key in this multimap, if any.
|
SortedSet |
removeAll(Object
Removes all values associated with the key
key.
|
SortedSet |
replaceValues(K key, Iterable
Stores a collection of values with the same key, replacing any existing values for that key.
|
Comparator |
valueComparator()
Returns the comparator that orders the multimap values, with
null indicating that natural ordering is used.
|
entriesasMap, clear, containsEntry, containsKey, containsValue, equals, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, valuestoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasMapentries, equalsclear, containsEntry, containsKey, containsValue, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, valuesprotected ForwardingSortedSetMultimap()
protected abstract SortedSetMultimap<K ,V> delegate()
ForwardingObject
ForwardingSet.delegate() . Concrete subclasses override this method to supply the instance being decorated.
public SortedSet<V> get(K key)
Multimap
key in this multimap, if any. Note that when
containsKey(key) is false, this returns an empty collection, not
null.
Changes to the returned collection will update the underlying multimap, and vice versa.
public SortedSet<V> removeAll(Object key)
Multimap
key.
Once this method returns, key will not be mapped to any values, so it will not appear in Multimap, Multimap, or any other views.
removeAll in interface
Multimap<K,V>
removeAll in interface
SetMultimap<K,V>
removeAll in interface
SortedSetMultimap<K,V>
removeAll in class
ForwardingSetMultimap<K,V>
public SortedSet<V> replaceValues(K key, Iterable <? extends V> values)
Multimap
If values is empty, this is equivalent to removeAll(key).
replaceValues in interface
Multimap<K,V>
replaceValues in interface
SetMultimap<K,V>
replaceValues in interface
SortedSetMultimap<K,V>
replaceValues in class
ForwardingSetMultimap<K,V>
public Comparator<? super V> valueComparator()
SortedSetMultimap
null indicating that natural ordering is used.