Package com.google.common.collect
Class MultimapBuilder.ListMultimapBuilder<K0 extends @Nullable Object,V0 extends @Nullable Object>
- java.lang.Object
-
- com.google.common.collect.MultimapBuilder<K0,V0>
-
- com.google.common.collect.MultimapBuilder.ListMultimapBuilder<K0,V0>
-
public abstract static class MultimapBuilder.ListMultimapBuilder<K0 extends @Nullable Object,V0 extends @Nullable 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 Object,V0 extends @Nullable Object>, MultimapBuilder.MultimapBuilderWithKeys<K0 extends @Nullable Object>, MultimapBuilder.SetMultimapBuilder<K0 extends @Nullable Object,V0 extends @Nullable Object>, MultimapBuilder.SortedSetMultimapBuilder<K0 extends @Nullable Object,V0 extends @Nullable 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
.
-
-