| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EnumBiMap<K extends Enum
A
BiMap backed by two
EnumMap instances.
|
class |
EnumHashBiMap<K extends Enum
A
BiMap backed by an
EnumMap instance for keys-to-values, and a
HashMap instance for values-to-keys.
|
class |
HashBiMap<K
A
BiMap backed by two hash tables.
|
class |
ImmutableBiMap<K
A
BiMap whose contents will never change, with many other important properties detailed at
ImmutableCollection.
|
| Modifier and Type | Method and Description |
|---|---|
static <K |
MapConstraints.constrainedBiMap(BiMap
Deprecated.
Returns a constrained view of the specified bimap, using the specified constraint.
|
static <K |
Maps.filterEntries(BiMap
Returns a bimap containing the mappings in
unfiltered that satisfy a predicate.
|
static <K |
Maps.filterKeys(BiMap
Returns a bimap containing the mappings in
unfiltered whose keys satisfy a predicate.
|
static <K |
Maps.filterValues(BiMap
Returns a bimap containing the mappings in
unfiltered whose values satisfy a predicate.
|
BiMap |
BiMap.inverse()
Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key.
|
BiMap |
HashBiMap.inverse()
|
static <K |
Maps.synchronizedBiMap(BiMap
Returns a synchronized (thread-safe) bimap backed by the specified bimap.
|
static <K |
Maps.unmodifiableBiMap(BiMap
Returns an unmodifiable view of the specified bimap.
|
| Modifier and Type | Method and Description |
|---|---|
static <A |
Maps.asConverter(BiMap
Returns a
Converter that converts values using
bimap.get(), and whose inverse view converts values using
bimap.inverse()
.get().
|
static <K |
MapConstraints.constrainedBiMap(BiMap
Deprecated.
Returns a constrained view of the specified bimap, using the specified constraint.
|
static <K |
Maps.filterEntries(BiMap
Returns a bimap containing the mappings in
unfiltered that satisfy a predicate.
|
static <K |
Maps.filterKeys(BiMap
Returns a bimap containing the mappings in
unfiltered whose keys satisfy a predicate.
|
static <K |
Maps.filterValues(BiMap
Returns a bimap containing the mappings in
unfiltered whose values satisfy a predicate.
|
static <K |
Maps.synchronizedBiMap(BiMap
Returns a synchronized (thread-safe) bimap backed by the specified bimap.
|
static <K |
Maps.unmodifiableBiMap(BiMap
Returns an unmodifiable view of the specified bimap.
|