Top Description Fields Constructors Methods
com.google.common.collect

pack-priv abstract Class ImmutableSortedMapFauxverideShim<K, V>

extends ImmutableMap<K, V>
Class Inheritance
Known Direct Subclasses
com.google.common.collect.ImmutableSortedMap
Annotations
@GwtIncompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtIncompatible, com.google.errorprone.annotations.DoNotCall, java.util.function.BinaryOperator, .Function, java.util.stream.Collector, org.checkerframework.checker.nullness.qual.Nullable

"Overrides" the ImmutableMap static methods that lack ImmutableSortedMap equivalents with deprecated, exception-throwing versions. See ImmutableSortedSetFauxverideShim for details.
Author
Chris Povirk

Field Summary

Inherited from com.google.common.collect.ImmutableMap:
EMPTY_ENTRY_ARRAY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static <K, V> ImmutableSortedMap.Builder<K, V>
builder()

Hides com.google.common.collect.ImmutableMap.builder.

Deprecated Use ImmutableSortedMap#naturalOrder, which offers better type-safety.
Not supported.
public static <K, V> ImmutableSortedMap.Builder<K, V>
builderWithExpectedSize(int expectedSize)

Hides com.google.common.collect.ImmutableMap.builderWithExpectedSize.

Deprecated Not supported for ImmutableSortedMap.
Not supported for ImmutableSortedMap.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the mapping's key
k1
,
V
the mapping's value
v1
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Deprecated Pass a key of type Comparable to use ImmutableSortedMap#of(Comparable, Object).
Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Deprecated Pass keys of type Comparable to use ImmutableSortedMap#of(Comparable, Object, Comparable, Object).
Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
,
K
the third mapping's key
k3
,
V
the third mapping's value
v3
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
,
K
the third mapping's key
k3
,
V
the third mapping's value
v3
,
K
the fourth mapping's key
k4
,
V
the fourth mapping's value
v4
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
,
K
the third mapping's key
k3
,
V
the third mapping's value
v3
,
K
the fourth mapping's key
k4
,
V
the fourth mapping's value
v4
,
K
the fifth mapping's key
k5
,
V
the fifth mapping's value
v5
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
,
K
the third mapping's key
k3
,
V
the third mapping's value
v3
,
K
the fourth mapping's key
k4
,
V
the fourth mapping's value
v4
,
K
the fifth mapping's key
k5
,
V
the fifth mapping's value
v5
,
K
the sixth mapping's key
k6
,
V
the sixth mapping's value
v6
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
,
K
the third mapping's key
k3
,
V
the third mapping's value
v3
,
K
the fourth mapping's key
k4
,
V
the fourth mapping's value
v4
,
K
the fifth mapping's key
k5
,
V
the fifth mapping's value
v5
,
K
the sixth mapping's key
k6
,
V
the sixth mapping's value
v6
,
K
the seventh mapping's key
k7
,
V
the seventh mapping's value
v7
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
,
K
the third mapping's key
k3
,
V
the third mapping's value
v3
,
K
the fourth mapping's key
k4
,
V
the fourth mapping's value
v4
,
K
the fifth mapping's key
k5
,
V
the fifth mapping's value
v5
,
K
the sixth mapping's key
k6
,
V
the sixth mapping's value
v6
,
K
the seventh mapping's key
k7
,
V
the seventh mapping's value
v7
,
K
the eighth mapping's key
k8
,
V
the eighth mapping's value
v8
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
,
K
the third mapping's key
k3
,
V
the third mapping's value
v3
,
K
the fourth mapping's key
k4
,
V
the fourth mapping's value
v4
,
K
the fifth mapping's key
k5
,
V
the fifth mapping's value
v5
,
K
the sixth mapping's key
k6
,
V
the sixth mapping's value
v6
,
K
the seventh mapping's key
k7
,
V
the seventh mapping's value
v7
,
K
the eighth mapping's key
k8
,
V
the eighth mapping's value
v8
,
K
the ninth mapping's key
k9
,
V
the ninth mapping's value
v9
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported.
public static <K, V> ImmutableSortedMap<K, V>
of(K
the first mapping's key
k1
,
V
the first mapping's value
v1
,
K
the second mapping's key
k2
,
V
the second mapping's value
v2
,
K
the third mapping's key
k3
,
V
the third mapping's value
v3
,
K
the fourth mapping's key
k4
,
V
the fourth mapping's value
v4
,
K
the fifth mapping's key
k5
,
V
the fifth mapping's value
v5
,
K
the sixth mapping's key
k6
,
V
the sixth mapping's value
v6
,
K
the seventh mapping's key
k7
,
V
the seventh mapping's value
v7
,
K
the eighth mapping's key
k8
,
V
the eighth mapping's value
v8
,
K
the ninth mapping's key
k9
,
V
the ninth mapping's value
v9
,
K
the tenth mapping's key
k10
,
V
the tenth mapping's value
v10
)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported.
public static <K, V> ImmutableSortedMap<K, V>
ofEntries(Map.Entry<? extends K, ? extends V>...
Map.Entrys containing the keys and values from which the map is populated
entries
)

Hides com.google.common.collect.ImmutableMap.ofEntries, java.util.Map.ofEntries.

Deprecated Use ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...)).
Not supported.
public static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>>
toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Hides com.google.common.collect.ImmutableMap.toImmutableMap.

Not supported.
public static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>>
toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction)

Hides com.google.common.collect.ImmutableMap.toImmutableMap.

Not supported.
Inherited from com.google.common.collect.ImmutableMap:
asMultimapcheckNoConflictclearcomputecomputeIfAbsentcomputeIfPresentconflictExceptioncontainsKeycontainsValuecopyOfcopyOfcreateEntrySetcreateKeySetcreateValuesentryOfentrySetequalsgetgetOrDefaulthashCodeisEmptyisHashCodeFastisPartialViewkeyIteratorkeySetkeySpliteratormergeofputputAllputIfAbsentremoveremovereplacereplacereplaceAlltoStringvalueswriteReplace

Constructor Detail

ImmutableSortedMapFauxverideShimback to summary
pack-priv ImmutableSortedMapFauxverideShim()

Method Detail

builderback to summary
public static <K, V> ImmutableSortedMap.Builder<K, V> builder()

Hides com.google.common.collect.ImmutableMap.builder.

Deprecated

Use ImmutableSortedMap#naturalOrder, which offers better type-safety.

Not supported. Use ImmutableSortedMap#naturalOrder, which offers better type-safety, instead. This method exists only to hide ImmutableMap#builder from consumers of ImmutableSortedMap.

Annotations
@DoNotCall:Use naturalOrder
@Deprecated
Exceptions
UnsupportedOperationException:
always
builderWithExpectedSizeback to summary
public static <K, V> ImmutableSortedMap.Builder<K, V> builderWithExpectedSize(int expectedSize)

Hides com.google.common.collect.ImmutableMap.builderWithExpectedSize.

Deprecated

Not supported for ImmutableSortedMap.

Not supported for ImmutableSortedMap.

Annotations
@DoNotCall:Use naturalOrder (which does not accept an expected size)
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Deprecated

Pass a key of type Comparable to use ImmutableSortedMap#of(Comparable, Object).

Not supported. You are attempting to create a map that may contain a non-Comparable key. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the mapping's key

v1:V

Doc from java.util.Map.of.

the mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mapping

Annotations
@DoNotCall:Pass a key of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Deprecated

Pass keys of type Comparable to use ImmutableSortedMap#of(Comparable, Object, Comparable, Object).

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls to will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

k3:K

Doc from java.util.Map.of.

the third mapping's key

v3:V

Doc from java.util.Map.of.

the third mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

k3:K

Doc from java.util.Map.of.

the third mapping's key

v3:V

Doc from java.util.Map.of.

the third mapping's value

k4:K

Doc from java.util.Map.of.

the fourth mapping's key

v4:V

Doc from java.util.Map.of.

the fourth mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

k3:K

Doc from java.util.Map.of.

the third mapping's key

v3:V

Doc from java.util.Map.of.

the third mapping's value

k4:K

Doc from java.util.Map.of.

the fourth mapping's key

v4:V

Doc from java.util.Map.of.

the fourth mapping's value

k5:K

Doc from java.util.Map.of.

the fifth mapping's key

v5:V

Doc from java.util.Map.of.

the fifth mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

k3:K

Doc from java.util.Map.of.

the third mapping's key

v3:V

Doc from java.util.Map.of.

the third mapping's value

k4:K

Doc from java.util.Map.of.

the fourth mapping's key

v4:V

Doc from java.util.Map.of.

the fourth mapping's value

k5:K

Doc from java.util.Map.of.

the fifth mapping's key

v5:V

Doc from java.util.Map.of.

the fifth mapping's value

k6:K

Doc from java.util.Map.of.

the sixth mapping's key

v6:V

Doc from java.util.Map.of.

the sixth mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

k3:K

Doc from java.util.Map.of.

the third mapping's key

v3:V

Doc from java.util.Map.of.

the third mapping's value

k4:K

Doc from java.util.Map.of.

the fourth mapping's key

v4:V

Doc from java.util.Map.of.

the fourth mapping's value

k5:K

Doc from java.util.Map.of.

the fifth mapping's key

v5:V

Doc from java.util.Map.of.

the fifth mapping's value

k6:K

Doc from java.util.Map.of.

the sixth mapping's key

v6:V

Doc from java.util.Map.of.

the sixth mapping's value

k7:K

Doc from java.util.Map.of.

the seventh mapping's key

v7:V

Doc from java.util.Map.of.

the seventh mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

k3:K

Doc from java.util.Map.of.

the third mapping's key

v3:V

Doc from java.util.Map.of.

the third mapping's value

k4:K

Doc from java.util.Map.of.

the fourth mapping's key

v4:V

Doc from java.util.Map.of.

the fourth mapping's value

k5:K

Doc from java.util.Map.of.

the fifth mapping's key

v5:V

Doc from java.util.Map.of.

the fifth mapping's value

k6:K

Doc from java.util.Map.of.

the sixth mapping's key

v6:V

Doc from java.util.Map.of.

the sixth mapping's value

k7:K

Doc from java.util.Map.of.

the seventh mapping's key

v7:V

Doc from java.util.Map.of.

the seventh mapping's value

k8:K

Doc from java.util.Map.of.

the eighth mapping's key

v8:V

Doc from java.util.Map.of.

the eighth mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

k3:K

Doc from java.util.Map.of.

the third mapping's key

v3:V

Doc from java.util.Map.of.

the third mapping's value

k4:K

Doc from java.util.Map.of.

the fourth mapping's key

v4:V

Doc from java.util.Map.of.

the fourth mapping's value

k5:K

Doc from java.util.Map.of.

the fifth mapping's key

v5:V

Doc from java.util.Map.of.

the fifth mapping's value

k6:K

Doc from java.util.Map.of.

the sixth mapping's key

v6:V

Doc from java.util.Map.of.

the sixth mapping's value

k7:K

Doc from java.util.Map.of.

the seventh mapping's key

v7:V

Doc from java.util.Map.of.

the seventh mapping's value

k8:K

Doc from java.util.Map.of.

the eighth mapping's key

v8:V

Doc from java.util.Map.of.

the eighth mapping's value

k9:K

Doc from java.util.Map.of.

the ninth mapping's key

v9:V

Doc from java.util.Map.of.

the ninth mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofback to summary
public static <K, V> ImmutableSortedMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10)

Hides com.google.common.collect.ImmutableMap.of, java.util.Map.of.

Not supported. You are attempting to create a map that may contain non-Comparable keys. Proper calls will resolve to the version in ImmutableSortedMap, not this dummy version.

Parameters
<K>

Doc from java.util.Map.of. the Map's key type

<V>

Doc from java.util.Map.of. the Map's value type

k1:K

Doc from java.util.Map.of.

the first mapping's key

v1:V

Doc from java.util.Map.of.

the first mapping's value

k2:K

Doc from java.util.Map.of.

the second mapping's key

v2:V

Doc from java.util.Map.of.

the second mapping's value

k3:K

Doc from java.util.Map.of.

the third mapping's key

v3:V

Doc from java.util.Map.of.

the third mapping's value

k4:K

Doc from java.util.Map.of.

the fourth mapping's key

v4:V

Doc from java.util.Map.of.

the fourth mapping's value

k5:K

Doc from java.util.Map.of.

the fifth mapping's key

v5:V

Doc from java.util.Map.of.

the fifth mapping's value

k6:K

Doc from java.util.Map.of.

the sixth mapping's key

v6:V

Doc from java.util.Map.of.

the sixth mapping's value

k7:K

Doc from java.util.Map.of.

the seventh mapping's key

v7:V

Doc from java.util.Map.of.

the seventh mapping's value

k8:K

Doc from java.util.Map.of.

the eighth mapping's key

v8:V

Doc from java.util.Map.of.

the eighth mapping's value

k9:K

Doc from java.util.Map.of.

the ninth mapping's key

v9:V

Doc from java.util.Map.of.

the ninth mapping's value

k10:K

Doc from java.util.Map.of.

the tenth mapping's key

v10:V

Doc from java.util.Map.of.

the tenth mapping's value

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.of.

a Map containing the specified mappings

Annotations
@DoNotCall:Pass keys of type Comparable
@Deprecated
Exceptions
UnsupportedOperationException:
always
ofEntriesback to summary
public static <K, V> ImmutableSortedMap<K, V> ofEntries(Map.Entry<? extends K, ? extends V>... entries)

Hides com.google.common.collect.ImmutableMap.ofEntries, java.util.Map.ofEntries.

Deprecated

Use ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...)).

Not supported. Use ImmutableSortedMap.copyOf(ImmutableMap.ofEntries(...)).

Parameters
<K>

Doc from java.util.Map.ofEntries. the Map's key type

<V>

Doc from java.util.Map.ofEntries. the Map's value type

entries:Map.Entry<? extends K, ? extends V>[]

Doc from java.util.Map.ofEntries.

Map.Entrys containing the keys and values from which the map is populated

Returns:ImmutableSortedMap<K, V>

Doc from java.util.Map.ofEntries.

a Map containing the specified mappings

Annotations
@DoNotCall:ImmutableSortedMap.ofEntries not currently available; use ImmutableSortedMap.copyOf
@Deprecated
toImmutableMapback to summary
public static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Hides com.google.common.collect.ImmutableMap.toImmutableMap.

Not supported. Use ImmutableSortedMap#toImmutableSortedMap, which offers better type-safety, instead. This method exists only to hide ImmutableMap#toImmutableMap from consumers of ImmutableSortedMap.

Annotations
@DoNotCall:Use toImmutableSortedMap
@Deprecated
Exceptions
UnsupportedOperationException:
always
toImmutableMapback to summary
public static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction)

Hides com.google.common.collect.ImmutableMap.toImmutableMap.

Not supported. Use ImmutableSortedMap#toImmutableSortedMap, which offers better type-safety, instead. This method exists only to hide ImmutableMap#toImmutableMap from consumers of ImmutableSortedMap.

Annotations
@DoNotCall:Use toImmutableSortedMap
@Deprecated
Exceptions
UnsupportedOperationException:
always