private final class RegularImmutableBiMap.Inverse extends ImmutableBiMap<V,K>
Modifier and Type | Class and Description |
---|---|
(package private) class |
RegularImmutableBiMap.Inverse.InverseEntrySet |
ImmutableBiMap.Builder<K,V>
Modifier | Constructor and Description |
---|---|
private |
Inverse() |
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableSet<java.util.Map.Entry<V,K>> |
createEntrySet() |
K |
get(java.lang.Object value) |
ImmutableBiMap<K,V> |
inverse()
Returns the inverse view of this bimap, which maps each of this bimap's
values to its associated key.
|
(package private) boolean |
isPartialView() |
int |
size() |
(package private) java.lang.Object |
writeReplace() |
builder, copyOf, forcePut, of, of, of, of, of, of, values
asMultimap, checkNoConflict, clear, containsKey, containsValue, createKeySet, entryOf, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, toString
public int size()
public ImmutableBiMap<K,V> inverse()
ImmutableBiMap
Note:There is no guaranteed correspondence between the iteration order of a bimap and that of its inverse.
The inverse of an ImmutableBiMap
is another
ImmutableBiMap
.
public K get(@Nullable java.lang.Object value)
ImmutableSet<java.util.Map.Entry<V,K>> createEntrySet()
createEntrySet
in class ImmutableMap<V,K>
boolean isPartialView()
isPartialView
in class ImmutableMap<V,K>
java.lang.Object writeReplace()
writeReplace
in class ImmutableBiMap<V,K>