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 classEnumBiMap<K extends java.lang.Enum<K>,V extends java.lang.Enum<V>>ABiMapbacked by twoEnumMapinstances.classEnumHashBiMap<K extends java.lang.Enum<K>,V extends @Nullable java.lang.Object>ABiMapbacked by anEnumMapinstance for keys-to-values, and aHashMapinstance for values-to-keys.classHashBiMap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>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 BiMap Modifier and Type Method Description static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
BiMap<K,V>Maps. filterEntries(BiMap<K,V> unfiltered, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate)Returns a bimap containing the mappings inunfilteredthat satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
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 extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
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<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 java.lang.Object,V extends @Nullable java.lang.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 java.lang.Object,V extends @Nullable java.lang.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 aConverterthat converts values usingbimap.get(), and whose inverse view converts values usingbimap.inverse().get().static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
BiMap<K,V>Maps. filterEntries(BiMap<K,V> unfiltered, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate)Returns a bimap containing the mappings inunfilteredthat satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
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 extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
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 extends @Nullable java.lang.Object,V extends @Nullable java.lang.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 java.lang.Object,V extends @Nullable java.lang.Object>
BiMap<K,V>Maps. unmodifiableBiMap(BiMap<? extends K,? extends V> bimap)Returns an unmodifiable view of the specified bimap.
-