private static class Multimaps.CustomListMultimap<K,V> extends AbstractListMultimap<K,V>
AbstractMapBasedMultimap.NavigableAsMap, AbstractMapBasedMultimap.NavigableKeySet, AbstractMapBasedMultimap.WrappedNavigableSet
AbstractMultimap.Values
Modifier and Type | Field and Description |
---|---|
(package private) Supplier<? extends java.util.List<V>> |
factory |
private static long |
serialVersionUID |
Constructor and Description |
---|
CustomListMultimap(java.util.Map<K,java.util.Collection<V>> map,
Supplier<? extends java.util.List<V>> factory) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<V> |
createCollection()
Creates the collection of values for a single key.
|
private void |
readObject(java.io.ObjectInputStream stream) |
private void |
writeObject(java.io.ObjectOutputStream stream) |
asMap, createUnmodifiableEmptyCollection, equals, get, put, removeAll, replaceValues
backingMap, clear, containsKey, createAsMap, createCollection, createKeySet, entries, entryIterator, setMap, size, unmodifiableCollectionSubclass, valueIterator, values, wrapCollection
containsEntry, containsValue, createEntries, createKeys, createValues, hashCode, isEmpty, keys, keySet, putAll, putAll, remove, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clear, containsEntry, containsKey, containsValue, entries, hashCode, isEmpty, keys, keySet, putAll, putAll, remove, size, values
@GwtIncompatible private static final long serialVersionUID
protected java.util.List<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 AbstractListMultimap<K,V>
@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