ImmutableMap with exactly one entry.
| Modifier and Type | Field and Description |
|---|---|
| private final transient ImmutableBiMap | |
| private transient ImmutableBiMap | |
| pack-priv final transient K | |
| pack-priv final transient V |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Overrides com. Implements java. true if this map contains a mapping for the specified
key.
|
| 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.
|
| pack-priv ImmutableSet | |
| pack-priv ImmutableSet | |
| public void | forEach(BiConsumer<? super K, ? super V>
The action to be performed for each entry action)Overrides default java. |
| public V | get(Object
the key whose associated value is to be returned key)Implements abstract com. Implements java. null if this map contains no mapping for the key.
|
| public ImmutableBiMap | inverse()
Implements abstract com. Implements com. |
| pack-priv boolean | |
| public int |
| inverse | back to summary |
|---|---|
| private final transient ImmutableBiMap<V, K> inverse
| |
| lazyInverse | back to summary |
|---|---|
| private transient ImmutableBiMap<V, K> lazyInverse
| |
| singleKey | back to summary |
|---|---|
| pack-priv final transient K singleKey | |
| singleValue | back to summary |
|---|---|
| pack-priv final transient V singleValue | |
| SingletonImmutableBiMap | back to summary |
|---|---|
| pack-priv SingletonImmutableBiMap(K singleKey, V singleValue) | |
| SingletonImmutableBiMap | back to summary |
|---|---|
| private SingletonImmutableBiMap(K singleKey, V singleValue, ImmutableBiMap<V, K> inverse) | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Overrides com. Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Overrides com. Implements java. Doc from java. Returns | |
| createEntrySet | back to summary |
|---|---|
| pack-priv ImmutableSet Implements abstract com.
| |
| createKeySet | back to summary |
|---|---|
| pack-priv ImmutableSet Implements abstract com.
| |
| forEach | back to summary |
|---|---|
| public void forEach(BiConsumer<? super K, ? super V> action) Overrides default java. Doc from java. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. Unless otherwise specified by the implementing class, actions are performed in the order of entry set iteration (if an iteration order is specified.) Exceptions thrown by the action are relayed to the caller.
| |
| get | back to summary |
|---|---|
| public V get(Object key) Implements abstract com. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| inverse | back to summary |
|---|---|
| public ImmutableBiMap Implements abstract com. Implements com. Doc from com. Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key. The two bimaps are backed by the same data; any changes to one will appear in the other. Note There is no guaranteed correspondence between the iteration order of a bimap and that of its inverse. The inverse of an
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com.
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |