|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use BiMap | |
|---|---|
| com.google.common.collect | This package contains generic collection interfaces and implementations, and other utilities for working with collections. |
| Uses of BiMap in com.google.common.collect |
|---|
| Classes in com.google.common.collect that implement BiMap | |
|---|---|
class |
EnumBiMap<K extends Enum<K>,V extends Enum<V>>
A BiMap backed by two EnumMap instances. |
class |
EnumHashBiMap<K extends 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 HashMap instances. |
| Methods in com.google.common.collect that return BiMap | ||
|---|---|---|
static
|
MapConstraints.constrainedBiMap(BiMap<K,V> map,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified bimap, using the specified constraint. |
|
BiMap<K,V> |
ImmutableBiMapBuilder.getBiMap()
Returns a newly-created, immutable BiMap instance containing the keys and values that were specified using put(). |
|
static
|
Maps.immutableBiMap()
Returns an immutable empty BiMap instance. |
|
static
|
Maps.immutableBiMap(K k1,
V v1)
Creates a new immutable BiMap instance containing the given
key-value pair. |
|
static
|
Maps.immutableBiMap(K k1,
V v1,
K k2,
V v2)
Creates a new immutable BiMap instance containing the given
key-value pairs. |
|
static
|
Maps.immutableBiMap(K k1,
V v1,
K k2,
V v2,
K k3,
V v3)
Creates a new immutable BiMap instance containing the given
key-value pairs. |
|
static
|
Maps.immutableBiMap(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4)
Creates a new immutable BiMap instance containing the given
key-value pairs. |
|
static
|
Maps.immutableBiMap(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5)
Creates a new immutable BiMap instance containing the given
key-value pairs. |
|
BiMap<V,K> |
BiMap.inverse()
Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key. |
|
static
|
Maps.newBiMap(java.util.Map<K,V> forward,
java.util.Map<V,K> backward)
Returns a new BiMap, backed by the two supplied empty maps. |
|
static
|
Maps.synchronizedBiMap(BiMap<K,V> bimap)
Returns a synchronized (thread-safe) bimap backed by the specified bimap. |
|
static
|
Maps.unmodifiableBiMap(BiMap<K,V> bimap)
Returns an unmodifiable view of the specified bimap. |
|
| Methods in com.google.common.collect with parameters of type BiMap | ||
|---|---|---|
static
|
MapConstraints.constrainedBiMap(BiMap<K,V> map,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified bimap, using the specified constraint. |
|
static
|
Maps.synchronizedBiMap(BiMap<K,V> bimap)
Returns a synchronized (thread-safe) bimap backed by the specified bimap. |
|
static
|
Maps.unmodifiableBiMap(BiMap<K,V> bimap)
Returns an unmodifiable view of the specified bimap. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||