Uses of Interface
com.google.common.collect.BiMap
Packages that use BiMap
Package
Description
Collection interfaces and implementations, and other utilities for 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 extends @Nullable Object>ABiMapbacked by anEnumMapinstance for keys-to-values, and aHashMapinstance for values-to-keys.final classABiMapbacked 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 TypeMethodDescriptionMaps.filterEntries(BiMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a bimap containing the mappings inunfilteredthat satisfy a predicate.Maps.filterKeys(BiMap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a bimap containing the mappings inunfilteredwhose keys satisfy a predicate.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()Maps.synchronizedBiMap(BiMap<K, V> bimap) Returns a synchronized (thread-safe) bimap backed by the specified bimap.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().Maps.filterEntries(BiMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a bimap containing the mappings inunfilteredthat satisfy a predicate.Maps.filterKeys(BiMap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a bimap containing the mappings inunfilteredwhose keys satisfy a predicate.Maps.filterValues(BiMap<K, V> unfiltered, Predicate<? super V> valuePredicate) Returns a bimap containing the mappings inunfilteredwhose values satisfy a predicate.Maps.synchronizedBiMap(BiMap<K, V> bimap) Returns a synchronized (thread-safe) bimap backed by the specified bimap.Maps.unmodifiableBiMap(BiMap<? extends K, ? extends V> bimap) Returns an unmodifiable view of the specified bimap.