public static class ImmutableSortedMap.Builder extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ImmutableSortedMap.Builder.KeyTranslator<C,D> |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
static <A,B,C> ImmutableSortedMap<A,C> |
buildFrom(List<A> keys,
Map<B,C> values,
ImmutableSortedMap.Builder.KeyTranslator<A,B> translator,
Comparator<A> comparator) |
static <K,V> ImmutableSortedMap<K,V> |
emptyMap(Comparator<K> comparator) |
static <A,B> ImmutableSortedMap<A,B> |
fromMap(Map<A,B> values,
Comparator<A> comparator) |
static <A> ImmutableSortedMap.Builder.KeyTranslator<A,A> |
identityTranslator() |
public static <K,V> ImmutableSortedMap<K,V> emptyMap(Comparator<K> comparator)
public static <A> ImmutableSortedMap.Builder.KeyTranslator<A,A> identityTranslator()
public static <A,B> ImmutableSortedMap<A,B> fromMap(Map<A,B> values, Comparator<A> comparator)
public static <A,B,C> ImmutableSortedMap<A,C> buildFrom(List<A> keys, Map<B,C> values, ImmutableSortedMap.Builder.KeyTranslator<A,B> translator, Comparator<A> comparator)
Copyright © 2023 Google LLC. All rights reserved.