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:
java.io.Serializable
,java.util.Map<K,V>
- Direct Known Subclasses:
ImmutableBiMap
abstract class ImmutableBiMapFauxverideShim<K,V> extends ImmutableMap<K,V>
"Overrides" theImmutableMap
static methods that lackImmutableBiMap
equivalents with deprecated, exception-throwing versions. SeeImmutableSortedSetFauxverideShim
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 Constructor Description ImmutableBiMapFauxverideShim()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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)
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
-
-
-
-
Method Detail
-
toImmutableMap
@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)
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:
java.lang.UnsupportedOperationException
- always
-
toImmutableMap
@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)
Deprecated.Not supported. This method does not make sense forBiMap
. This method exists only to hideImmutableMap.toImmutableMap(Function, Function, BinaryOperator)
from consumers ofImmutableBiMap
.- Throws:
java.lang.UnsupportedOperationException
- always
-
-