private static class Multimaps.CustomSortedSetMultimap<K,V> extends AbstractSortedSetMultimap<K,V>
AbstractMapBasedMultimap.NavigableAsMap, AbstractMapBasedMultimap.NavigableKeySet, AbstractMapBasedMultimap.WrappedCollection, AbstractMapBasedMultimap.WrappedList, AbstractMapBasedMultimap.WrappedNavigableSet, AbstractMapBasedMultimap.WrappedSet, AbstractMapBasedMultimap.WrappedSortedSetAbstractMultimap.Entries, AbstractMultimap.EntrySet, 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 |
|---|---|
(package private) java.util.Map<K,java.util.Collection<V>> |
createAsMap() |
protected java.util.SortedSet<V> |
createCollection()
Creates the collection of values for a single key.
|
(package private) java.util.Set<K> |
createKeySet() |
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, unmodifiableCollectionSubclass, values, wrapCollectionentries, equals, putbackingMap, clear, containsKey, createCollection, createEntries, createKeys, createMaybeNavigableAsMap, createMaybeNavigableKeySet, createValues, entryIterator, entrySpliterator, forEach, setMap, size, valueIterator, valueSpliterator, wrapListcontainsEntry, containsValue, hashCode, isEmpty, keys, keySet, putAll, putAll, remove, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitentries, equalsclear, containsEntry, containsKey, containsValue, forEach, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size@CheckForNull transient java.util.Comparator<? super V> valueComparator
private static final long serialVersionUID
java.util.Set<K> createKeySet()
createKeySet in class AbstractMapBasedMultimap<K,V>java.util.Map<K,java.util.Collection<V>> createAsMap()
createAsMap in class AbstractMapBasedMultimap<K,V>protected java.util.SortedSet<V> createCollection()
AbstractMapBasedMultimapCollections 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>@CheckForNull public java.util.Comparator<? super V> valueComparator()
SortedSetMultimapnull indicating that
natural ordering is used.private void writeObject(java.io.ObjectOutputStream stream)
throws java.io.IOException
java.io.IOExceptionprivate void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException