private static class Multimaps.CustomSortedSetMultimap<K,V> extends AbstractSortedSetMultimap<K,V>
AbstractMapBasedMultimap.NavigableAsMap, AbstractMapBasedMultimap.NavigableKeySet, AbstractMapBasedMultimap.WrappedNavigableSet
AbstractMultimap.Values
Modifier and Type | Field and Description |
---|---|
(package private) Supplier<? extends java.util.SortedSet<V>> |
factory |
private static long |
serialVersionUID |
(package private) java.util.Comparator<? super V> |
valueComparator |
Constructor and Description |
---|
CustomSortedSetMultimap(java.util.Map<K,java.util.Collection<V>> map,
Supplier<? extends java.util.SortedSet<V>> factory) |
Modifier and Type | Method and Description |
---|---|
protected java.util.SortedSet<V> |
createCollection()
Creates the collection of values for a single key.
|
private void |
readObject(java.io.ObjectInputStream stream) |
java.util.Comparator<? super V> |
valueComparator()
Returns the comparator that orders the multimap values, with
null
indicating that natural ordering is used. |
private void |
writeObject(java.io.ObjectOutputStream stream) |
asMap, createUnmodifiableEmptyCollection, get, removeAll, replaceValues, values
entries, equals, put
backingMap, clear, containsKey, createAsMap, createCollection, createKeySet, entryIterator, setMap, size, unmodifiableCollectionSubclass, valueIterator, wrapCollection
containsEntry, containsValue, createEntries, createKeys, createValues, hashCode, isEmpty, keys, keySet, putAll, putAll, remove, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
entries, equals
clear, containsEntry, containsKey, containsValue, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size
transient java.util.Comparator<? super V> valueComparator
@GwtIncompatible private static final long serialVersionUID
protected java.util.SortedSet<V> createCollection()
AbstractMapBasedMultimap
Collections with weak, soft, or phantom references are not supported.
Each call to createCollection
should create a new instance.
The returned collection class determines whether duplicate key-value pairs are allowed.
createCollection
in class AbstractSortedSetMultimap<K,V>
public java.util.Comparator<? super V> valueComparator()
SortedSetMultimap
null
indicating that natural ordering is used.@GwtIncompatible private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException
java.io.IOException
@GwtIncompatible private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException