private static class Multimaps.CustomListMultimap<K,V> extends AbstractListMultimap<K,V>
AbstractMapBasedMultimap.NavigableAsMap, AbstractMapBasedMultimap.NavigableKeySet, AbstractMapBasedMultimap.WrappedNavigableSetAbstractMultimap.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, replaceValuesbackingMap, clear, containsKey, createAsMap, createCollection, createKeySet, entries, entryIterator, setMap, size, unmodifiableCollectionSubclass, valueIterator, values, wrapCollectioncontainsEntry, containsValue, createEntries, createKeys, createValues, hashCode, isEmpty, keys, keySet, putAll, putAll, remove, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitclear, 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()
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 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.IOExceptionjava.lang.ClassNotFoundException