Uses of Interface
com.google.common.collect.BiMap
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of BiMap in com.google.common.collect
Modifier and TypeClassDescriptionfinal class
ABiMap
backed by twoEnumMap
instances.final class
EnumHashBiMap<K extends Enum<K>,
V extends @Nullable Object> ABiMap
backed by anEnumMap
instance for keys-to-values, and aHashMap
instance for values-to-keys.final class
ABiMap
backed by two hash tables.class
ImmutableBiMap<K,
V> ABiMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.Modifier and TypeMethodDescriptionMaps.filterEntries
(BiMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a bimap containing the mappings inunfiltered
that satisfy a predicate.Maps.filterKeys
(BiMap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a bimap containing the mappings inunfiltered
whose keys satisfy a predicate.Maps.filterValues
(BiMap<K, V> unfiltered, Predicate<? super V> valuePredicate) Returns a bimap containing the mappings inunfiltered
whose 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.Modifier 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()
.Maps.filterEntries
(BiMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a bimap containing the mappings inunfiltered
that satisfy a predicate.Maps.filterKeys
(BiMap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a bimap containing the mappings inunfiltered
whose keys satisfy a predicate.Maps.filterValues
(BiMap<K, V> unfiltered, Predicate<? super V> valuePredicate) Returns a bimap containing the mappings inunfiltered
whose 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.