Map instances.
Note that this class contains equals() calls that keep it from supporting IdentityHashMap backing maps.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| private class | |
| pack-priv static class | AbstractBiMap.
The inverse of any other |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private transient Map | |
| private transient Set | |
| pack-priv transient AbstractBiMap | |
| private transient Set | |
| private static final long | |
| private transient Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractBiMap(Map<K, V> forward, Map<V, K> backward)
Package-private constructor for creating a map-backed bimap. |
| private | AbstractBiMap(Map<K, V> backward, AbstractBiMap<V, K> forward)
Private constructor for inverse bimap. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv K | |
| pack-priv V | |
| public void | clear()
Overrides com. Implements java. |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Overrides com. Implements java. true if this map maps one or more keys to the
specified value.
|
| protected Map | delegate()
Implements abstract com. |
| public Set | entrySet()
Overrides com. Implements java. Set view of the mappings contained in this map.
|
| pack-priv Iterator | |
| public V | forcePut(K
the key with which the specified value is to be associated key, V the value to be associated with the specified key value)Implements com. put that silently removes any existing entry with the value value before proceeding with the put operation.
|
| public BiMap | inverse()
Implements com. |
| public Set | keySet()
Overrides com. Implements java. Set view of the keys contained in this map.
|
| pack-priv AbstractBiMap | |
| public V | put(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides com. Implements com. |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map map)Overrides com. Implements com. |
| private V | |
| public V | remove(Object
key whose mapping is to be removed from the map key)Overrides com. Implements java. |
| private V | |
| private void | |
| public void | replaceAll(BiFunction<? super K, ? super V, ? extends V>
the function to apply to each entry function)Overrides default java. |
| pack-priv void | setDelegates(Map<K, V> forward, Map<V, K> backward)
Specifies the delegate maps going in each direction. |
| pack-priv void | |
| private void | |
| public Set | values()
Overrides com. Implements com. Collection view of the values contained in this map.
|