Uses of Class
com.google.common.collect.ImmutableSortedMap.Builder
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableSortedMap.Builder in com.google.common.collect
Modifier and TypeMethodDescriptionstatic <K,
V> ImmutableSortedMap.Builder <K, V> ImmutableSortedMap.builder()
Deprecated.static <K,
V> ImmutableSortedMap.Builder <K, V> ImmutableSortedMap.builderWithExpectedSize
(int expectedSize) Deprecated.Not supported for ImmutableSortedMap.static <K extends Comparable<?>,
V>
ImmutableSortedMap.Builder<K, V> ImmutableSortedMap.naturalOrder()
Returns a builder that creates immutable sorted maps whose keys are ordered by their natural ordering.static <K,
V> ImmutableSortedMap.Builder <K, V> ImmutableSortedMap.orderedBy
(Comparator<K> comparator) Returns a builder that creates immutable sorted maps with an explicit comparator.final ImmutableSortedMap.Builder
<K, V> ImmutableSortedMap.Builder.orderEntriesByValue
(Comparator<? super V> valueComparator) Deprecated.Unsupported by ImmutableSortedMap.Builder.Adds the givenentry
to the map, making it immutable if necessary.Associateskey
withvalue
in the built map.Adds all the given entries to the built map.Associates all of the given map's keys and values in the built map.static <K extends Comparable<?>,
V>
ImmutableSortedMap.Builder<K, V> ImmutableSortedMap.reverseOrder()
Returns a builder that creates immutable sorted maps whose keys are ordered by the reverse of their natural ordering.
ImmutableSortedMap.naturalOrder()
, which offers better type-safety.