Uses of Interface
com.google.common.collect.BiMap
-
Packages that use BiMap Package Description com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections.com.google.common.collect.testing.google com.google.common.testing This package contains testing utilities. -
-
Uses of BiMap in com.google.common.collect
Classes in com.google.common.collect that implement BiMap Modifier and Type Class Description (package private) classAbstractBiMap<K,V>A general-purpose bimap implementation using any two backingMapinstances.(package private) static classAbstractBiMap.Inverse<K,V>The inverse of any otherAbstractBiMapsubclass.classEnumBiMap<K extends java.lang.Enum<K>,V extends java.lang.Enum<V>>ABiMapbacked by twoEnumMapinstances.classEnumHashBiMap<K extends java.lang.Enum<K>,V>ABiMapbacked by anEnumMapinstance for keys-to-values, and aHashMapinstance for values-to-keys.classHashBiMap<K,V>ABiMapbacked by two hash tables.private classHashBiMap.InverseclassImmutableBiMap<K,V>ABiMapwhose contents will never change, with many other important properties detailed atImmutableCollection.(package private) classJdkBackedImmutableBiMap<K,V>Implementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness protecting against hash flooding.(package private) static classMaps.FilteredEntryBiMap<K,V>private static classMaps.UnmodifiableBiMap<K,V>(package private) classRegularImmutableBiMap<K,V>Bimap with zero or more mappings.private classRegularImmutableBiMap.Inverse(package private) classSingletonImmutableBiMap<K,V>Implementation ofImmutableMapwith exactly one entry.(package private) static classSynchronized.SynchronizedBiMap<K,V>Fields in com.google.common.collect declared as BiMap Modifier and Type Field Description private BiMap<A,B>Maps.BiMapConverter. bimap(package private) BiMap<? extends K,? extends V>Maps.UnmodifiableBiMap. delegateprivate BiMap<V,K>HashBiMap. inverseprivate BiMap<V,K>Maps.FilteredEntryBiMap. inverse(package private) BiMap<V,K>Maps.UnmodifiableBiMap. inverseprivate BiMap<V,K>Synchronized.SynchronizedBiMap. inverseMethods in com.google.common.collect that return BiMap Modifier and Type Method Description (package private) static <K,V>
BiMap<K,V>Synchronized. biMap(BiMap<K,V> bimap, java.lang.Object mutex)(package private) BiMap<K,V>Synchronized.SynchronizedBiMap. delegate()static <K,V>
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.private static <K,V>
BiMap<K,V>Maps. filterFiltered(Maps.FilteredEntryBiMap<K,V> map, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate)Supportclear(),removeAll(), andretainAll()when filtering a filtered map.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.(package private) BiMap<K,V>HashBiMap.Inverse. forward()BiMap<V,K>AbstractBiMap. inverse()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()BiMap<K,V>HashBiMap.Inverse. inverse()BiMap<V,K>Maps.FilteredEntryBiMap. inverse()BiMap<V,K>Maps.UnmodifiableBiMap. inverse()BiMap<V,K>Synchronized.SynchronizedBiMap. inverse()static <K,V>
BiMap<K,V>Maps. synchronizedBiMap(BiMap<K,V> bimap)Returns a synchronized (thread-safe) bimap backed by the specified bimap.(package private) BiMap<K,V>Maps.FilteredEntryBiMap. unfiltered()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 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().(package private) static <K,V>
BiMap<K,V>Synchronized. biMap(BiMap<K,V> bimap, java.lang.Object mutex)private static <X,Y>
YMaps.BiMapConverter. convert(BiMap<X,Y> bimap, X input)static <K,V>
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,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.Constructors in com.google.common.collect with parameters of type BiMap Constructor Description BiMapConverter(BiMap<A,B> bimap)FilteredEntryBiMap(BiMap<K,V> delegate, Predicate<? super java.util.Map.Entry<K,V>> predicate)FilteredEntryBiMap(BiMap<K,V> delegate, Predicate<? super java.util.Map.Entry<K,V>> predicate, BiMap<V,K> inverse)SynchronizedBiMap(BiMap<K,V> delegate, java.lang.Object mutex, BiMap<V,K> inverse)UnmodifiableBiMap(BiMap<? extends K,? extends V> delegate, BiMap<V,K> inverse) -
Uses of BiMap in com.google.common.collect.testing.google
Fields in com.google.common.collect.testing.google declared as BiMap Modifier and Type Field Description (package private) BiMap<V,K>BiMapInverseTester.BiMapPair. backward(package private) BiMap<K,V>BiMapInverseTester.BiMapPair. forwardFields in com.google.common.collect.testing.google with type parameters of type BiMap Modifier and Type Field Description private OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>>DerivedGoogleCollectionGenerators.InverseBiMapGenerator. generatorprivate OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>>DerivedGoogleCollectionGenerators.MapGenerator. generatorprivate OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>>DerivedGoogleCollectionGenerators.BiMapValueSetGenerator. mapGeneratorMethods in com.google.common.collect.testing.google that return BiMap Modifier and Type Method Description protected BiMap<java.lang.String,java.lang.String>BiMapGenerators.ImmutableBiMapCopyOfEntriesGenerator. create(java.util.Map.Entry<java.lang.String,java.lang.String>[] entries)protected BiMap<java.lang.String,java.lang.String>BiMapGenerators.ImmutableBiMapCopyOfGenerator. create(java.util.Map.Entry<java.lang.String,java.lang.String>[] entries)protected BiMap<java.lang.String,java.lang.String>BiMapGenerators.ImmutableBiMapGenerator. create(java.util.Map.Entry<java.lang.String,java.lang.String>[] entries)BiMap<V,K>DerivedGoogleCollectionGenerators.InverseBiMapGenerator. create(java.lang.Object... elements)BiMap<java.lang.String,java.lang.String>TestStringBiMapGenerator. create(java.lang.Object... entries)protected abstract BiMap<java.lang.String,java.lang.String>TestStringBiMapGenerator. create(java.util.Map.Entry<java.lang.String,java.lang.String>[] entries)protected BiMap<K,V>AbstractBiMapTester. getMap()Method parameters in com.google.common.collect.testing.google with type arguments of type BiMap Modifier and Type Method Description protected java.util.List<junit.framework.TestSuite>BiMapTestSuiteBuilder. createDerivedSuites(FeatureSpecificTestSuiteBuilder<?,? extends OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>>> parentBuilder)Constructors in com.google.common.collect.testing.google with parameters of type BiMap Constructor Description BiMapPair(BiMap<K,V> original)Constructor parameters in com.google.common.collect.testing.google with type arguments of type BiMap Constructor Description BiMapValueSetGenerator(OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>> mapGenerator)InverseBiMapGenerator(OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>> oneSizeTestContainerGenerator)MapGenerator(OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>> oneSizeTestContainerGenerator) -
Uses of BiMap in com.google.common.testing
Methods in com.google.common.testing that return BiMap Modifier and Type Method Description private static <K,V>
BiMap<K,V>FreshValueGenerator. generateBimap(K key, V value)
-