Class ImmutableSortedMap.Builder (3.12.1)

public static class ImmutableSortedMap.Builder

Inheritance

java.lang.Object > ImmutableSortedMap.Builder

Static Methods

<A,B,C>buildFrom(List<A> keys, Map<B,C> values, ImmutableSortedMap.Builder.KeyTranslator<A,B> translator, Comparator<A> comparator)

public static ImmutableSortedMap<A,C> <A,B,C>buildFrom(List<A> keys, Map<B,C> values, ImmutableSortedMap.Builder.KeyTranslator<A,B> translator, Comparator<A> comparator)
Parameters
NameDescription
keysList<A>
valuesMap<B,C>
translatorKeyTranslator<A,B>
comparatorComparator<A>
Returns
TypeDescription
ImmutableSortedMap<A,C>

<A,B>fromMap(Map<A,B> values, Comparator<A> comparator)

public static ImmutableSortedMap<A,B> <A,B>fromMap(Map<A,B> values, Comparator<A> comparator)
Parameters
NameDescription
valuesMap<A,B>
comparatorComparator<A>
Returns
TypeDescription
ImmutableSortedMap<A,B>

<A>identityTranslator()

public static ImmutableSortedMap.Builder.KeyTranslator<A,A> <A>identityTranslator()
Returns
TypeDescription
KeyTranslator<A,A>

<K,V>emptyMap(Comparator<K> comparator)

public static ImmutableSortedMap<K,V> <K,V>emptyMap(Comparator<K> comparator)
Parameter
NameDescription
comparatorComparator<K>
Returns
TypeDescription
ImmutableSortedMap<K,V>

Constructors

Builder()

public Builder()