Class ImmutableSortedMap.Builder (3.26.3)

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
Name Description
keys List<A>
values Map<B,C>
translator KeyTranslator<A,B>
comparator Comparator<A>
Returns
Type Description
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
Name Description
values Map<A,B>
comparator Comparator<A>
Returns
Type Description
ImmutableSortedMap<A,B>

<A>identityTranslator()

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

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

public static ImmutableSortedMap<K,V> <K,V>emptyMap(Comparator<K> comparator)
Parameter
Name Description
comparator Comparator<K>
Returns
Type Description
ImmutableSortedMap<K,V>

Constructors

Builder()

public Builder()