private static class ImmutableSetMultimap.BuilderMultimap<K,V> extends AbstractMapBasedMultimap<K,V>
ImmutableSetMultimap.Builder that maintains key
and value orderings and performs better than LinkedHashMultimap.AbstractMapBasedMultimap.NavigableAsMap, AbstractMapBasedMultimap.NavigableKeySet, AbstractMapBasedMultimap.WrappedNavigableSetAbstractMultimap.Values| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
BuilderMultimap() |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.util.Collection<V> |
createCollection()
Creates the collection of values for a single key.
|
backingMap, clear, containsKey, createAsMap, createCollection, createKeySet, createUnmodifiableEmptyCollection, entries, entryIterator, get, put, removeAll, replaceValues, setMap, size, unmodifiableCollectionSubclass, valueIterator, values, wrapCollectionasMap, containsEntry, containsValue, createEntries, createKeys, createValues, equals, hashCode, isEmpty, keys, keySet, putAll, putAll, remove, toStringprivate static final long serialVersionUID
java.util.Collection<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 AbstractMapBasedMultimap<K,V>