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) class
AbstractBiMap<K,V>
A general-purpose bimap implementation using any two backingMap
instances.(package private) static class
AbstractBiMap.Inverse<K,V>
The inverse of any otherAbstractBiMap
subclass.class
EnumBiMap<K extends java.lang.Enum<K>,V extends java.lang.Enum<V>>
ABiMap
backed by twoEnumMap
instances.class
EnumHashBiMap<K extends java.lang.Enum<K>,V>
ABiMap
backed by anEnumMap
instance for keys-to-values, and aHashMap
instance for values-to-keys.class
HashBiMap<K,V>
ABiMap
backed by two hash tables.private class
HashBiMap.Inverse
class
ImmutableBiMap<K,V>
ABiMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) class
JdkBackedImmutableBiMap<K,V>
Implementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness protecting against hash flooding.(package private) static class
Maps.FilteredEntryBiMap<K,V>
private static class
Maps.UnmodifiableBiMap<K,V>
(package private) class
RegularImmutableBiMap<K,V>
Bimap with zero or more mappings.private class
RegularImmutableBiMap.Inverse
(package private) class
SingletonImmutableBiMap<K,V>
Implementation ofImmutableMap
with exactly one entry.(package private) static class
Synchronized.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. delegate
private BiMap<V,K>
HashBiMap. inverse
private BiMap<V,K>
Maps.FilteredEntryBiMap. inverse
(package private) BiMap<V,K>
Maps.UnmodifiableBiMap. inverse
private BiMap<V,K>
Synchronized.SynchronizedBiMap. inverse
Methods 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 inunfiltered
that 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 inunfiltered
whose 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 inunfiltered
whose 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 aConverter
that 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 inunfiltered
that 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 inunfiltered
whose 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 inunfiltered
whose 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. forward
Fields 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. generator
private OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>>
DerivedGoogleCollectionGenerators.MapGenerator. generator
private OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>>
DerivedGoogleCollectionGenerators.BiMapValueSetGenerator. mapGenerator
Methods 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 (package private) static <K,V>
BiMap<K,V>FreshValueGenerator. generateBimap(K key, V value)
-