public class StandardBiMap<K,V> extends ForwardingMap<K,V> implements java.io.Serializable
Map
instances.Modifier | Constructor and Description |
---|---|
protected |
StandardBiMap(java.util.Map<K,V> forward,
java.util.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,
java.lang.Object errorMessage) |
static void |
checkArgument(boolean expression,
java.lang.String errorMessageTemplate,
java.lang.Object... errorMessageArgs) |
static void |
checkState(boolean expression) |
static void |
checkState(boolean expression,
java.lang.Object errorMessage) |
void |
clear() |
boolean |
containsValue(java.lang.Object value) |
java.util.Map<K,V> |
delegate() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
forcePut(K key,
V value) |
StandardBiMap<V,K> |
inverse() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> map) |
protected V |
putInBothMaps(K key,
V value,
boolean force) |
V |
remove(java.lang.Object key) |
protected V |
removeFromBothMaps(java.lang.Object key) |
protected void |
removeFromInverseMap(V oldValue) |
protected void |
setDelegates(java.util.Map<K,V> forward,
java.util.Map<V,K> backward)
Specifies the delegate maps going in each direction.
|
protected void |
updateInverseMap(K key,
boolean containedKey,
V oldValue,
V newValue) |
java.util.Set<V> |
values() |
containsKey, createEntrySet, createKeySet, createValues, equals, get, hashCode, isEmpty, size, toString
protected void setDelegates(java.util.Map<K,V> forward, java.util.Map<V,K> backward)
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<K,V>
containsValue
in class ForwardingMap<K,V>
protected void updateInverseMap(K key, boolean containedKey, V oldValue, V newValue)
public V remove(java.lang.Object key)
protected V removeFromBothMaps(java.lang.Object key)
protected void removeFromInverseMap(V oldValue)
public void clear()
public StandardBiMap<V,K> inverse()
public java.util.Set<K> keySet()
public java.util.Set<V> values()
public static void checkState(boolean expression)
public static void checkState(boolean expression, java.lang.Object errorMessage)
public static void checkArgument(boolean expression)
public static void checkArgument(boolean expression, java.lang.Object errorMessage)
public static void checkArgument(boolean expression, java.lang.String errorMessageTemplate, java.lang.Object... errorMessageArgs)
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.