private static class Synchronized.SynchronizedSortedSetMultimap<K,V> extends Synchronized.SynchronizedSetMultimap<K,V> implements SortedSetMultimap<K,V>
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
entrySetasMap, entries, keys, keySet, valuesCollectiondelegate, mutex| Constructor and Description |
|---|
SynchronizedSortedSetMultimap(SortedSetMultimap<K,V> delegate,
java.lang.Object mutex) |
| Modifier and Type | Method and Description |
|---|---|
(package private) SortedSetMultimap<K,V> |
delegate() |
java.util.SortedSet<V> |
get(K key)
Returns a view collection of the values associated with
key in this multimap, if any. |
java.util.SortedSet<V> |
removeAll(java.lang.Object key)
Removes all values associated with the key
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, forEach, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, valuestoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasMapentries, equalsprivate static final long serialVersionUID
SynchronizedSortedSetMultimap(SortedSetMultimap<K,V> delegate, @CheckForNull java.lang.Object mutex)
SortedSetMultimap<K,V> delegate()
delegate in class Synchronized.SynchronizedSetMultimap<K,V>public java.util.SortedSet<V> get(K key)
Multimapkey 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 java.util.SortedSet<V> removeAll(@CheckForNull java.lang.Object key)
Multimapkey.
Once this method returns, key will not be mapped to any values, so it will not
appear in Multimap.keySet(), Multimap.asMap(), 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 Synchronized.SynchronizedSetMultimap<K,V>public java.util.SortedSet<V> replaceValues(K key, java.lang.Iterable<? extends V> values)
MultimapIf 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 Synchronized.SynchronizedSetMultimap<K,V>@CheckForNull public java.util.Comparator<? super V> valueComparator()
SortedSetMultimapnull indicating that
natural ordering is used.valueComparator in interface SortedSetMultimap<K,V>