Uses of Class
com.google.common.collect.ImmutableMap.Builder
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableMap.Builder in com.google.common.collect
Modifier and TypeClassDescriptionstatic final class
A builder for creating immutable bimap instances, especiallypublic static final
bimaps ("constant bimaps").static class
A builder for creating immutable sorted map instances, especiallypublic static final
maps ("constant maps").Modifier and TypeMethodDescriptionstatic <K,
V> ImmutableMap.Builder <K, V> ImmutableMap.builder()
Returns a new builder.static <K,
V> ImmutableMap.Builder <K, V> ImmutableMap.builderWithExpectedSize
(int expectedSize) Returns a new builder, expecting the specified number of entries to be added.ImmutableMap.Builder.orderEntriesByValue
(Comparator<? super V> valueComparator) Configures thisBuilder
to order entries by value according to the specified comparator.Adds the givenentry
to the map, making it immutable if necessary.Associateskey
withvalue
in the built map.Adds all of the given entries to the built map.Associates all of the given map's keys and values in the built map.