Package com.google.common.collect
Class ImmutableBiMapFauxverideShim<K,V>
java.lang.Object
com.google.common.collect.ImmutableMap<K,V>
com.google.common.collect.ImmutableBiMapFauxverideShim<K,V>
- All Implemented Interfaces:
Serializable
,Map<K,
V>
- Direct Known Subclasses:
ImmutableBiMap
"Overrides" the
ImmutableMap
static methods that lack ImmutableBiMap
equivalents
with deprecated, exception-throwing versions. See ImmutableSortedSetFauxverideShim
for
details.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableMap
ImmutableMap.Builder<K,
V>, ImmutableMap.IteratorBasedImmutableMap<K, V>, ImmutableMap.SerializedForm<K, V> -
Field Summary
Fields inherited from class com.google.common.collect.ImmutableMap
EMPTY_ENTRY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
K, V> Collector <T, ?, ImmutableMap<K, V>> toImmutableMap
(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) Deprecated.static <T,
K, V> Collector <T, ?, ImmutableMap<K, V>> toImmutableMap
(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) Deprecated.Methods inherited from class com.google.common.collect.ImmutableMap
asMultimap, builder, builderWithExpectedSize, 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, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, toString, values, writeReplace
-
Constructor Details
-
ImmutableBiMapFauxverideShim
ImmutableBiMapFauxverideShim()
-
-
Method Details
-
toImmutableMap
@Deprecated public static <T,K, Collector<T,V> ?, toImmutableMapImmutableMap<K, V>> (Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) Deprecated.Not supported. UseImmutableBiMap.toImmutableBiMap(java.util.function.Function<? super T, ? extends K>, java.util.function.Function<? super T, ? extends V>)
instead. This method exists only to hideImmutableMap.toImmutableMap(Function, Function)
from consumers ofImmutableBiMap
.- Throws:
UnsupportedOperationException
- always
-
toImmutableMap
@Deprecated public static <T,K, Collector<T,V> ?, toImmutableMapImmutableMap<K, V>> (Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) Deprecated.Not supported. This method does not make sense forBiMap
. This method exists only to hideImmutableMap.toImmutableMap(Function, Function, BinaryOperator)
from consumers ofImmutableBiMap
.- Throws:
UnsupportedOperationException
- always
-
ImmutableBiMap.toImmutableBiMap(java.util.function.Function<? super T, ? extends K>, java.util.function.Function<? super T, ? extends V>)
.