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.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractBiMap<K,V>
A general-purpose bimap implementation using any two backing
Map
instances. |
(package private) static class |
AbstractBiMap.Inverse<K,V>
The inverse of any other
AbstractBiMap subclass. |
class |
EnumBiMap<K extends java.lang.Enum<K>,V extends java.lang.Enum<V>>
A
BiMap backed by two EnumMap instances. |
class |
EnumHashBiMap<K extends java.lang.Enum<K>,V>
A
BiMap backed by an EnumMap instance for keys-to-values, and
a HashMap instance for values-to-keys. |
class |
HashBiMap<K,V>
A
BiMap backed by two hash tables. |
private class |
HashBiMap.Inverse |
class |
ImmutableBiMap<K,V>
A
BiMap whose contents will never change, with many other important properties detailed
at ImmutableCollection . |
(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 of
ImmutableMap with exactly one entry. |
(package private) static class |
Synchronized.SynchronizedBiMap<K,V> |
Modifier and Type | Field and Description |
---|---|
private BiMap<A,B> |
Maps.BiMapConverter.bimap |
(package private) BiMap<? extends K,? extends V> |
Maps.UnmodifiableBiMap.delegate |
(package private) BiMap<V,K> |
Maps.UnmodifiableBiMap.inverse |
private BiMap<V,K> |
Maps.FilteredEntryBiMap.inverse |
private BiMap<V,K> |
HashBiMap.inverse |
private BiMap<V,K> |
Synchronized.SynchronizedBiMap.inverse |
Modifier and Type | Method and 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 in
unfiltered 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)
Support
clear() , removeAll() , and retainAll() 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 in
unfiltered 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 in
unfiltered whose values satisfy a
predicate. |
(package private) BiMap<K,V> |
HashBiMap.Inverse.forward() |
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> |
AbstractBiMap.inverse() |
BiMap<V,K> |
Maps.UnmodifiableBiMap.inverse() |
BiMap<V,K> |
Maps.FilteredEntryBiMap.inverse() |
BiMap<V,K> |
HashBiMap.inverse() |
BiMap<K,V> |
HashBiMap.Inverse.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.
|
Modifier and Type | Method and Description |
---|---|
static <A,B> Converter<A,B> |
Maps.asConverter(BiMap<A,B> bimap)
Returns a
Converter that converts values using bimap.get() ,
and whose inverse view converts values using
bimap.inverse() .get() . |
(package private) static <K,V> BiMap<K,V> |
Synchronized.biMap(BiMap<K,V> bimap,
java.lang.Object mutex) |
private static <X,Y> Y |
Maps.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 in
unfiltered 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 in
unfiltered 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 in
unfiltered 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.
|
Constructor and 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) |
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) |
SynchronizedBiMap(BiMap<K,V> delegate,
java.lang.Object mutex,
BiMap<V,K> inverse) |
UnmodifiableBiMap(BiMap<? extends K,? extends V> delegate,
BiMap<V,K> inverse) |
UnmodifiableBiMap(BiMap<? extends K,? extends V> delegate,
BiMap<V,K> inverse) |
Modifier and Type | Field and Description |
---|---|
(package private) BiMap<V,K> |
BiMapInverseTester.BiMapPair.backward |
(package private) BiMap<K,V> |
BiMapInverseTester.BiMapPair.forward |
Modifier and Type | Field and Description |
---|---|
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.InverseBiMapGenerator.generator |
private OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>> |
DerivedGoogleCollectionGenerators.BiMapValueSetGenerator.mapGenerator |
Modifier and Type | Method and Description |
---|---|
protected abstract BiMap<java.lang.String,java.lang.String> |
TestStringBiMapGenerator.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) |
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.ImmutableBiMapCopyOfEntriesGenerator.create(java.util.Map.Entry<java.lang.String,java.lang.String>[] entries) |
BiMap<java.lang.String,java.lang.String> |
TestStringBiMapGenerator.create(java.lang.Object... entries) |
BiMap<V,K> |
DerivedGoogleCollectionGenerators.InverseBiMapGenerator.create(java.lang.Object... elements) |
protected BiMap<K,V> |
AbstractBiMapTester.getMap() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<junit.framework.TestSuite> |
BiMapTestSuiteBuilder.createDerivedSuites(FeatureSpecificTestSuiteBuilder<?,? extends OneSizeTestContainerGenerator<BiMap<K,V>,java.util.Map.Entry<K,V>>> parentBuilder) |
Constructor and Description |
---|
BiMapPair(BiMap<K,V> original) |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
private static <K,V> BiMap<K,V> |
FreshValueGenerator.generateBimap(K key,
V value) |