Package com.google.common.collect
Class MultimapBuilder.ListMultimapBuilder<K0 extends @Nullable java.lang.Object,V0 extends @Nullable java.lang.Object>
- java.lang.Object
-
- com.google.common.collect.MultimapBuilder<K0,V0>
-
- com.google.common.collect.MultimapBuilder.ListMultimapBuilder<K0,V0>
-
- Enclosing class:
- MultimapBuilder<K0 extends @Nullable java.lang.Object,V0 extends @Nullable java.lang.Object>
public abstract static class MultimapBuilder.ListMultimapBuilder<K0 extends @Nullable java.lang.Object,V0 extends @Nullable java.lang.Object> extends MultimapBuilder<K0,V0>
A specialization ofMultimapBuilder
that generatesListMultimap
instances.- Since:
- 16.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.MultimapBuilder
MultimapBuilder.ListMultimapBuilder<K0 extends @Nullable java.lang.Object,V0 extends @Nullable java.lang.Object>, MultimapBuilder.MultimapBuilderWithKeys<K0 extends @Nullable java.lang.Object>, MultimapBuilder.SetMultimapBuilder<K0 extends @Nullable java.lang.Object,V0 extends @Nullable java.lang.Object>, MultimapBuilder.SortedSetMultimapBuilder<K0 extends @Nullable java.lang.Object,V0 extends @Nullable java.lang.Object>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <K extends K0,V extends V0>
ListMultimap<K,V>build()
Returns a new, emptyMultimap
with the specified implementation.<K extends K0,V extends V0>
ListMultimap<K,V>build(Multimap<? extends K,? extends V> multimap)
Returns aMultimap
with the specified implementation, initialized with the entries ofmultimap
.-
Methods inherited from class com.google.common.collect.MultimapBuilder
enumKeys, hashKeys, hashKeys, linkedHashKeys, linkedHashKeys, treeKeys, treeKeys
-
-
-
-
Method Detail
-
build
public abstract <K extends K0,V extends V0> ListMultimap<K,V> build()
Description copied from class:MultimapBuilder
Returns a new, emptyMultimap
with the specified implementation.
-
build
public <K extends K0,V extends V0> ListMultimap<K,V> build(Multimap<? extends K,? extends V> multimap)
Description copied from class:MultimapBuilder
Returns aMultimap
with the specified implementation, initialized with the entries ofmultimap
.
-
-