Uses of Interface
com.google.common.collect.BiMap
Packages that use BiMap
Package
Description
Collection interfaces and implementations, and other utilities for collections.
Testing utilities.
-
Uses of BiMap in com.google.common.collect
Classes in com.google.common.collect that implement BiMapModifier and TypeClassDescription(package private) class
AbstractBiMap<K,
V> A general-purpose bimap implementation using any two backingMap
instances.(package private) static class
The inverse of any otherAbstractBiMap
subclass.final class
ABiMap
backed by twoEnumMap
instances.final class
EnumHashBiMap<K extends Enum<K>,
V> ABiMap
backed by anEnumMap
instance for keys-to-values, and aHashMap
instance for values-to-keys.final class
HashBiMap<K,
V> ABiMap
backed by two hash tables.private final class
class
ImmutableBiMap<K,
V> ABiMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) final class
Implementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness protecting against hash flooding.(package private) static final class
private static class
(package private) class
Bimap with zero or more mappings.private final class
(package private) final class
Implementation ofImmutableMap
with exactly one entry.(package private) static final class
Fields in com.google.common.collect declared as BiMapModifier and TypeFieldDescriptionMaps.BiMapConverter.bimap
Maps.UnmodifiableBiMap.delegate
HashBiMap.inverse
Maps.FilteredEntryBiMap.inverse
Maps.UnmodifiableBiMap.inverse
Synchronized.SynchronizedBiMap.inverse
Methods in com.google.common.collect that return BiMapModifier and TypeMethodDescription(package private) static <K,
V> BiMap <K, V> Synchronized.SynchronizedBiMap.delegate()
static <K,
V> BiMap <K, V> Maps.filterEntries
(BiMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a bimap containing the mappings inunfiltered
that satisfy a predicate.private static <K,
V> BiMap <K, V> Maps.filterFiltered
(Maps.FilteredEntryBiMap<K, V> map, Predicate<? super Map.Entry<K, V>> entryPredicate) Supportclear()
,removeAll()
, andretainAll()
when filtering a filtered map.static <K,
V> BiMap <K, V> Maps.filterKeys
(BiMap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a bimap containing the mappings inunfiltered
whose keys satisfy a predicate.static <K,
V> BiMap <K, V> Maps.filterValues
(BiMap<K, V> unfiltered, Predicate<? super V> valuePredicate) Returns a bimap containing the mappings inunfiltered
whose values satisfy a predicate.HashBiMap.Inverse.forward()
AbstractBiMap.inverse()
BiMap.inverse()
Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key.HashBiMap.inverse()
HashBiMap.Inverse.inverse()
Maps.FilteredEntryBiMap.inverse()
Maps.UnmodifiableBiMap.inverse()
Synchronized.SynchronizedBiMap.inverse()
static <K,
V> BiMap <K, V> Maps.synchronizedBiMap
(BiMap<K, V> bimap) Returns a synchronized (thread-safe) bimap backed by the specified bimap.Maps.FilteredEntryBiMap.unfiltered()
static <K,
V> BiMap <K, V> Maps.unmodifiableBiMap
(BiMap<? extends K, ? extends V> bimap) Returns an unmodifiable view of the specified bimap.Methods in com.google.common.collect with parameters of type BiMapModifier and TypeMethodDescriptionstatic <A,
B> Converter <A, B> Maps.asConverter
(BiMap<A, B> bimap) Returns aConverter
that converts values usingbimap.get()
, and whose inverse view converts values usingbimap.inverse()
.get()
.(package private) static <K,
V> BiMap <K, V> private static <X,
Y> Y static <K,
V> BiMap <K, V> Maps.filterEntries
(BiMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a bimap containing the mappings inunfiltered
that satisfy a predicate.static <K,
V> BiMap <K, V> Maps.filterKeys
(BiMap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a bimap containing the mappings inunfiltered
whose keys satisfy a predicate.static <K,
V> BiMap <K, V> Maps.filterValues
(BiMap<K, V> unfiltered, Predicate<? super V> valuePredicate) Returns a bimap containing the mappings inunfiltered
whose values satisfy a predicate.static <K,
V> BiMap <K, V> Maps.synchronizedBiMap
(BiMap<K, V> bimap) Returns a synchronized (thread-safe) bimap backed by the specified bimap.static <K,
V> BiMap <K, V> Maps.unmodifiableBiMap
(BiMap<? extends K, ? extends V> bimap) Returns an unmodifiable view of the specified bimap.Constructors in com.google.common.collect with parameters of type BiMap -
Uses of BiMap in com.google.common.collect.testing.google
Fields in com.google.common.collect.testing.google declared as BiMapModifier and TypeFieldDescriptionBiMapInverseTester.BiMapPair.backward
BiMapInverseTester.BiMapPair.forward
Fields in com.google.common.collect.testing.google with type parameters of type BiMapModifier and TypeFieldDescriptionDerivedGoogleCollectionGenerators.InverseBiMapGenerator.generator
DerivedGoogleCollectionGenerators.MapGenerator.generator
DerivedGoogleCollectionGenerators.BiMapValueSetGenerator.mapGenerator
Methods in com.google.common.collect.testing.google that return BiMapMethod parameters in com.google.common.collect.testing.google with type arguments of type BiMapModifier and TypeMethodDescriptionprotected List
<junit.framework.TestSuite> BiMapTestSuiteBuilder.createDerivedSuites
(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<BiMap<K, V>, Map.Entry<K, V>>> parentBuilder) Constructors in com.google.common.collect.testing.google with parameters of type BiMapConstructor parameters in com.google.common.collect.testing.google with type arguments of type BiMapModifierConstructorDescriptionBiMapValueSetGenerator
(OneSizeTestContainerGenerator<BiMap<K, V>, Map.Entry<K, V>> mapGenerator) InverseBiMapGenerator
(OneSizeTestContainerGenerator<BiMap<K, V>, Map.Entry<K, V>> oneSizeTestContainerGenerator) MapGenerator
(OneSizeTestContainerGenerator<BiMap<K, V>, Map.Entry<K, V>> oneSizeTestContainerGenerator) -
Uses of BiMap in com.google.common.testing
Methods in com.google.common.testing that return BiMapModifier and TypeMethodDescription(package private) static <K,
V> BiMap <K, V> FreshValueGenerator.generateBimap
(K key, V value)