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.
-
Uses of BiMap in com.google.common.collect
Classes in com.google.common.collect that implement BiMapModifier and TypeClassDescriptionfinal 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.classImmutableBiMap<K,V> ABiMapwhose contents will never change, with many other important properties detailed atImmutableCollection.Methods in com.google.common.collect that return BiMapModifier and TypeMethodDescriptionstatic <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.BiMap.inverse()Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key.HashBiMap.inverse()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.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().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. -
Uses of BiMap in com.google.common.collect.testing.google
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) Constructor 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)