Uses of Class
com.google.common.collect.ImmutableListMultimap.Builder
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableListMultimap.Builder in com.google.common.collect
Modifier and TypeMethodDescriptionstatic <K,
V> ImmutableListMultimap.Builder <K, V> ImmutableListMultimap.builder()
Returns a new builder.static <K,
V> ImmutableListMultimap.Builder <K, V> ImmutableListMultimap.builderWithExpectedKeys
(int expectedKeys) Returns a new builder with a hint for how many distinct keys are expected to be added.ImmutableListMultimap.Builder.expectedValuesPerKey
(int expectedValuesPerKey) Provides a hint for how many values will be associated with each key newly added to the builder after this call.ImmutableListMultimap.Builder.orderKeysBy
(Comparator<? super K> keyComparator) Specifies the ordering of the generated multimap's keys.ImmutableListMultimap.Builder.orderValuesBy
(Comparator<? super V> valueComparator) Specifies the ordering of the generated multimap's values for each key.Adds an entry to the built multimap.ImmutableListMultimap.Builder.putAll
(Iterable<? extends Map.Entry<? extends K, ? extends V>> entries) Adds entries to the built multimap.