Uses of Class
com.google.common.collect.ImmutableBiMap
Packages that use ImmutableBiMap
Package
Description
Collection interfaces and implementations, and other utilities for collections.
Testing utilities.
-
Uses of ImmutableBiMap in com.google.common.collect
Subclasses of ImmutableBiMap in com.google.common.collectModifier and TypeClassDescription(package private) final class
Implementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness protecting against hash flooding.(package private) class
Bimap with zero or more mappings.private final class
(package private) final class
Implementation ofImmutableMap
with exactly one entry.Fields in com.google.common.collect declared as ImmutableBiMapModifier and TypeFieldDescriptionprivate final ImmutableBiMap
<K, V> RegularImmutableBiMap.InverseSerializedForm.forward
private ImmutableBiMap
<V, K> RegularImmutableBiMap.inverse
private final ImmutableBiMap
<V, K> SingletonImmutableBiMap.inverse
private ImmutableBiMap
<V, K> SingletonImmutableBiMap.lazyInverse
Methods in com.google.common.collect that return ImmutableBiMapModifier and TypeMethodDescriptionImmutableBiMap.Builder.build()
Returns a newly-created immutable bimap.(package private) ImmutableBiMap
<K, V> ImmutableBiMap.Builder.buildJdkBacked()
ImmutableBiMap.Builder.buildKeepingLast()
Deprecated.This method does not make sense for bimaps and should not be called.ImmutableBiMap.Builder.buildOrThrow()
Returns a newly-created immutable bimap, or throws an exception if any key or value was added more than once.static <K,
V> ImmutableBiMap <K, V> Returns an immutable bimap containing the given entries.static <K,
V> ImmutableBiMap <K, V> Returns an immutable bimap containing the same entries asmap
.(package private) static <K,
V> ImmutableBiMap <K, V> (package private) static <K,
V> ImmutableBiMap <K, V> RegularImmutableBiMap.fromEntries
(Map.Entry<K, V>... entries) (package private) static <K,
V> ImmutableBiMap <K, V> RegularImmutableBiMap.fromEntryArray
(int n, Map.Entry<K, V>[] entryArray) abstract ImmutableBiMap
<V, K> ImmutableBiMap.inverse()
Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key.JdkBackedImmutableBiMap.inverse()
RegularImmutableBiMap.inverse()
RegularImmutableBiMap.Inverse.inverse()
SingletonImmutableBiMap.inverse()
static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.of()
Returns the empty bimap.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.of
(K k1, V v1) Returns an immutable bimap containing a single entry.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.of
(K k1, V v1, K k2, V v2) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.of
(K k1, V v1, K k2, V v2, K k3, V v3) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.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) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.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) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.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) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.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) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> ImmutableBiMap.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) Returns an immutable map containing the given entries, in order.static <K,
V> ImmutableBiMap <K, V> Returns an immutable map containing the given entries, in order.Methods in com.google.common.collect that return types with arguments of type ImmutableBiMapModifier and TypeMethodDescription(package private) static <T,
K, V> Collector <T, ?, ImmutableBiMap<K, V>> CollectCollectors.toImmutableBiMap
(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) static <T,
K, V> Collector <T, ?, ImmutableBiMap<K, V>> ImmutableBiMap.toImmutableBiMap
(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) Returns aCollector
that accumulates elements into anImmutableBiMap
whose keys and values are the result of applying the provided mapping functions to the input elements.Constructors in com.google.common.collect with parameters of type ImmutableBiMapModifierConstructorDescription(package private)
InverseSerializedForm
(ImmutableBiMap<K, V> forward) (package private)
SerializedForm
(ImmutableBiMap<K, V> bimap) private
SingletonImmutableBiMap
(K singleKey, V singleValue, ImmutableBiMap<V, K> inverse) -
Uses of ImmutableBiMap in com.google.common.testing
Methods in com.google.common.testing that return ImmutableBiMapModifier and TypeMethodDescription(package private) static <K,
V> ImmutableBiMap <K, V> FreshValueGenerator.generateImmutableBimap
(K key, V value)