abstract class ImmutableSortedMapFauxverideShim<K,V> extends ImmutableMap<K,V>
ImmutableMap
static methods that lack ImmutableSortedMap
equivalents with deprecated, exception-throwing versions. See ImmutableSortedSetFauxverideShim
for details.ImmutableMap.Builder<K,V>, ImmutableMap.IteratorBasedImmutableMap<K,V>, ImmutableMap.SerializedForm<K,V>
EMPTY_ENTRY_ARRAY
Constructor and Description |
---|
ImmutableSortedMapFauxverideShim() |
Modifier and Type | Method and Description |
---|---|
static <K,V> ImmutableSortedMap.Builder<K,V> |
builder()
Deprecated.
Use
ImmutableSortedMap.naturalOrder() , which offers better type-safety. |
static <K,V> ImmutableSortedMap.Builder<K,V> |
builderWithExpectedSize(int expectedSize)
Deprecated.
Not supported for ImmutableSortedMap.
|
static <K,V> ImmutableSortedMap<K,V> |
of(K k1,
V v1)
Deprecated.
Pass a key of type
Comparable to use ImmutableSortedMap.of(Comparable, Object) . |
static <K,V> ImmutableSortedMap<K,V> |
of(K k1,
V v1,
K k2,
V v2)
Deprecated.
Pass keys of type
Comparable to use ImmutableSortedMap.of(Comparable, Object, Comparable, Object) . |
static <K,V> ImmutableSortedMap<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3)
Deprecated.
Pass keys of type
Comparable to use ImmutableSortedMap.of(Comparable, Object, Comparable, Object, Comparable, Object) . |
static <K,V> ImmutableSortedMap<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4)
Deprecated.
Pass keys of type
Comparable to use ImmutableSortedMap.of(Comparable, Object, Comparable, Object, Comparable, Object,
Comparable, Object) . |
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)
Deprecated.
Pass keys of type
Comparable to use ImmutableSortedMap.of(Comparable, Object, Comparable, Object, Comparable, Object,
Comparable, Object, Comparable, Object) . |
static <T,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction)
|
static <T,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.BinaryOperator<V> mergeFunction)
|
asMultimap, checkNoConflict, clear, compute, computeIfAbsent, computeIfPresent, conflictException, containsKey, containsValue, copyOf, copyOf, createEntrySet, createKeySet, createValues, entryOf, entrySet, equals, get, getOrDefault, hashCode, isEmpty, isHashCodeFast, isPartialView, keyIterator, keySet, keySpliterator, merge, of, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, toString, values, writeReplace
@Deprecated public static <T,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction)
ImmutableSortedMap.toImmutableSortedMap(java.util.Comparator<? super K>, java.util.function.Function<? super T, ? extends K>, java.util.function.Function<? super T, ? extends V>)
, which offers better
type-safety, instead. This method exists only to hide ImmutableMap.toImmutableMap(java.util.function.Function<? super T, ? extends K>, java.util.function.Function<? super T, ? extends V>)
from
consumers of ImmutableSortedMap
.java.lang.UnsupportedOperationException
- always@Deprecated public static <T,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction, java.util.function.BinaryOperator<V> mergeFunction)
ImmutableSortedMap.toImmutableSortedMap(java.util.Comparator<? super K>, java.util.function.Function<? super T, ? extends K>, java.util.function.Function<? super T, ? extends V>)
, which offers better
type-safety, instead. This method exists only to hide ImmutableMap.toImmutableMap(java.util.function.Function<? super T, ? extends K>, java.util.function.Function<? super T, ? extends V>)
from
consumers of ImmutableSortedMap
.java.lang.UnsupportedOperationException
- always@Deprecated public static <K,V> ImmutableSortedMap.Builder<K,V> builder()
ImmutableSortedMap.naturalOrder()
, which offers better type-safety.ImmutableSortedMap.naturalOrder()
, which offers better type-safety,
instead. This method exists only to hide ImmutableMap.builder()
from consumers of ImmutableSortedMap
.java.lang.UnsupportedOperationException
- always@Deprecated public static <K,V> ImmutableSortedMap.Builder<K,V> builderWithExpectedSize(int expectedSize)
java.lang.UnsupportedOperationException
- always@Deprecated public static <K,V> ImmutableSortedMap<K,V> of(K k1, V v1)
Comparable
to use ImmutableSortedMap.of(Comparable, Object)
.Comparable
key. Proper calls will resolve to the version in ImmutableSortedMap
, not this dummy
version.java.lang.UnsupportedOperationException
- always@Deprecated public static <K,V> ImmutableSortedMap<K,V> of(K k1, V v1, K k2, V v2)
Comparable
to use ImmutableSortedMap.of(Comparable, Object, Comparable, Object)
.Comparable
keys. Proper calls will resolve to the version in ImmutableSortedMap
, not this
dummy version.java.lang.UnsupportedOperationException
- always@Deprecated public static <K,V> ImmutableSortedMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3)
Comparable
to use ImmutableSortedMap.of(Comparable, Object, Comparable, Object, Comparable, Object)
.Comparable
keys. Proper calls to will resolve to the version in ImmutableSortedMap
, not this
dummy version.java.lang.UnsupportedOperationException
- always@Deprecated public static <K,V> ImmutableSortedMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
Comparable
to use ImmutableSortedMap.of(Comparable, Object, Comparable, Object, Comparable, Object,
Comparable, Object)
.Comparable
keys. Proper calls will resolve to the version in ImmutableSortedMap
, not this
dummy version.java.lang.UnsupportedOperationException
- always@Deprecated 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)
Comparable
to use ImmutableSortedMap.of(Comparable, Object, Comparable, Object, Comparable, Object,
Comparable, Object, Comparable, Object)
.Comparable
keys. Proper calls will resolve to the version in ImmutableSortedMap
, not this
dummy version.java.lang.UnsupportedOperationException
- always