Uses of Interface
com.google.common.collect.BiMap
-
Packages that use BiMap Package Description com.google.common.collect 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 BiMap Modifier and Type Class Description class
EnumBiMap<K extends Enum<K>,V extends Enum<V>>
ABiMap
backed by twoEnumMap
instances.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.class
HashBiMap<K extends @Nullable Object,V extends @Nullable Object>
ABiMap
backed by two hash tables.class
ImmutableBiMap<K,V>
ABiMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.Methods in com.google.common.collect that return BiMap Modifier and Type Method Description static <K extends @Nullable Object,V extends @Nullable Object>
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 extends @Nullable Object,V extends @Nullable Object>
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 extends @Nullable Object,V extends @Nullable Object>
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.BiMap<V,K>
BiMap. inverse()
Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key.BiMap<V,K>
HashBiMap. inverse()
static <K extends @Nullable Object,V extends @Nullable Object>
BiMap<K,V>Maps. synchronizedBiMap(BiMap<K,V> bimap)
Returns a synchronized (thread-safe) bimap backed by the specified bimap.static <K extends @Nullable Object,V extends @Nullable Object>
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 BiMap Modifier and Type Method Description static <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()
.static <K extends @Nullable Object,V extends @Nullable Object>
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 extends @Nullable Object,V extends @Nullable Object>
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 extends @Nullable Object,V extends @Nullable Object>
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 extends @Nullable Object,V extends @Nullable Object>
BiMap<K,V>Maps. synchronizedBiMap(BiMap<K,V> bimap)
Returns a synchronized (thread-safe) bimap backed by the specified bimap.static <K extends @Nullable Object,V extends @Nullable Object>
BiMap<K,V>Maps. unmodifiableBiMap(BiMap<? extends K,? extends V> bimap)
Returns an unmodifiable view of the specified bimap.
-