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

pack-priv abstract Class ImmutableBiMapFauxverideShim<K, V>

extends ImmutableMap<K, V>
Class Inheritance
Known Direct Subclasses
com.google.common.collect.ImmutableBiMap
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 ImmutableBiMap equivalents with deprecated, exception-throwing versions. See ImmutableSortedSetFauxverideShim for details.
Author
Louis Wasserman

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 <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.

Deprecated
Not supported.
Inherited from com.google.common.collect.ImmutableMap:
asMultimapbuilderbuilderWithExpectedSizecheckNoConflictclearcomputecomputeIfAbsentcomputeIfPresentconflictExceptioncontainsKeycontainsValuecopyOfcopyOfcreateEntrySetcreateKeySetcreateValuesentryOfentrySetequalsgetgetOrDefaulthashCodeisEmptyisHashCodeFastisPartialViewkeyIteratorkeySetkeySpliteratormergeofofofofofofofofofofofofEntriesputputAllputIfAbsentremoveremovereplacereplacereplaceAlltoStringvalueswriteReplace

Constructor Detail

ImmutableBiMapFauxverideShimback to summary
pack-priv ImmutableBiMapFauxverideShim()

Method Detail

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 ImmutableBiMap#toImmutableBiMap instead. This method exists only to hide ImmutableMap#toImmutableMap(Function, Function) from consumers of ImmutableBiMap.

Annotations
@Deprecated
@DoNotCall:Use toImmutableBiMap
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.

Deprecated

Not supported. This method does not make sense for BiMap. This method exists only to hide ImmutableMap#toImmutableMap(Function, Function, BinaryOperator) from consumers of ImmutableBiMap.

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