com.google.common.collect
@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<K,V> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
java.util.SortedSet<V> |
get(K key)
Returns a collection view of all values associated with a key.
|
java.util.SortedSet<V> |
removeAll(java.lang.Object key)
Removes all values associated with a given key.
|
java.util.SortedSet<V> |
replaceValues(K key,
java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing
values for that key.
|
java.util.Comparator<? super V> |
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()
ForwardingObjectForwardingSet.delegate(). Concrete subclasses override this method to supply
the instance being decorated.delegate in class ForwardingSetMultimap<K,V>public java.util.SortedSet<V> get(@Nullable K key)
MultimapChanges to the returned collection will update the underlying multimap, and vice versa.
public java.util.SortedSet<V> removeAll(@Nullable java.lang.Object key)
MultimapremoveAll 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 multimappublic java.util.SortedSet<V> replaceValues(K key, java.lang.Iterable<? extends V> values)
MultimapreplaceValues 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 multimappublic java.util.Comparator<? super V> valueComparator()
SortedSetMultimapnull
indicating that natural ordering is used.valueComparator in interface SortedSetMultimap<K,V>