public class StandardBiMap<K,V> extends ForwardingMap<K,V> implements Serializable
Map
instances.| Modifier | Constructor and Description |
|---|---|
protected |
StandardBiMap(Map<K,V> forward,
Map<V,K> backward)
Package-private constructor for creating a map-backed bimap.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArgument(boolean expression) |
static void |
checkArgument(boolean expression,
Object errorMessage) |
static void |
checkArgument(boolean expression,
String errorMessageTemplate,
Object... errorMessageArgs) |
static void |
checkState(boolean expression) |
static void |
checkState(boolean expression,
Object errorMessage) |
void |
clear() |
boolean |
containsValue(Object value) |
Map<K,V> |
delegate() |
Set<Map.Entry<K,V>> |
entrySet() |
V |
forcePut(K key,
V value) |
StandardBiMap<V,K> |
inverse() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
protected V |
putInBothMaps(K key,
V value,
boolean force) |
V |
remove(Object key) |
protected V |
removeFromBothMaps(Object key) |
protected void |
removeFromInverseMap(V oldValue) |
protected void |
setDelegates(Map<K,V> forward,
Map<V,K> backward)
Specifies the delegate maps going in each direction.
|
protected void |
updateInverseMap(K key,
boolean containedKey,
V oldValue,
V newValue) |
Set<V> |
values() |
containsKey, createEntrySet, createKeySet, createValues, equals, get, hashCode, isEmpty, size, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected void setDelegates(Map<K,V> forward, Map<V,K> backward)
public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class ForwardingMap<K,V>protected void updateInverseMap(K key, boolean containedKey, V oldValue, V newValue)
protected void removeFromInverseMap(V oldValue)
public void clear()
public StandardBiMap<V,K> inverse()
public static void checkState(boolean expression)
public static void checkState(boolean expression,
Object errorMessage)
public static void checkArgument(boolean expression)
public static void checkArgument(boolean expression,
Object errorMessage)
Copyright © 2026. All rights reserved.