Uses of Interface
com.google.common.collect.BiMap
Packages that use BiMap
Package
Description
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
This package contains testing utilities.
-
Uses of BiMap in com.google.common.collect
Classes in com.google.common.collect that implement BiMapModifier and TypeClassDescription(package private) classAbstractBiMap<K,V> A general-purpose bimap implementation using any two backingMapinstances.(package private) static classThe inverse of any otherAbstractBiMapsubclass.final classABiMapbacked by twoEnumMapinstances.final classEnumHashBiMap<K extends Enum<K>,V> ABiMapbacked by anEnumMapinstance for keys-to-values, and aHashMapinstance for values-to-keys.final classHashBiMap<K,V> ABiMapbacked by two hash tables.private final classclassImmutableBiMap<K,V> ABiMapwhose contents will never change, with many other important properties detailed atImmutableCollection.(package private) final classImplementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness protecting against hash flooding.(package private) static final classprivate static class(package private) classBimap with zero or more mappings.private final class(package private) final classImplementation ofImmutableMapwith exactly one entry.(package private) static classFields in com.google.common.collect declared as BiMapModifier and TypeFieldDescriptionMaps.BiMapConverter.bimapMaps.UnmodifiableBiMap.delegateHashBiMap.inverseMaps.FilteredEntryBiMap.inverseMaps.UnmodifiableBiMap.inverseSynchronized.SynchronizedBiMap.inverseMethods 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 inunfilteredthat 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 inunfilteredwhose 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 inunfilteredwhose 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 aConverterthat 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 inunfilteredthat 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 inunfilteredwhose 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 inunfilteredwhose 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.backwardBiMapInverseTester.BiMapPair.forwardFields in com.google.common.collect.testing.google with type parameters of type BiMapModifier and TypeFieldDescriptionDerivedGoogleCollectionGenerators.InverseBiMapGenerator.generatorDerivedGoogleCollectionGenerators.MapGenerator.generatorDerivedGoogleCollectionGenerators.BiMapValueSetGenerator.mapGeneratorMethods 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)