| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes all of the mappings from this map (optional operation). |
| public V | compute(final K
key with which the specified value is to be associated k, final BiFunction<? super K, ? super V, ? extends V> the remapping function to compute a value function)Overrides default java.
Deprecated
Unsupported operation.
Attempts to compute a mapping for the specified key and its current
mapped value, or |
| public V | computeIfAbsent(final K
key with which the specified value is to be associated k, final Function<? super K, ? extends V> the mapping function to compute a value function)Overrides default java.
Deprecated
Unsupported operation.
If the specified key is not already associated with a value (or is mapped
to |
| public V | computeIfPresent(final K
key with which the specified value is to be associated k, final BiFunction<? super K, ? super V, ? extends V> the remapping function to compute a value function)Overrides default java.
Deprecated
Unsupported operation.
If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value (optional operation). |
| public V | merge(final K
key with which the resulting value is to be associated k, final V the non-null value to be merged with the existing value
associated with the key or, if no existing value or a null value
is associated with the key, to be associated with the key v, final BiFunction<? super V, ? super V, ? extends V> the remapping function to recompute a value if
present function)Overrides default java.
Deprecated
Unsupported operation.
If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value (optional operation). |
| public V | put(final K
key with which the specified value is to be associated k, final V value to be associated with the specified key v)Overrides java. Implements java.
Deprecated
Unsupported operation.
Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(final Map<? extends K, ? extends V>
mappings to be stored in this map map)Overrides java. Implements java.
Deprecated
Unsupported operation.
Copies all of the mappings from the specified map to this map (optional operation). |
| public V | putIfAbsent(final K
key with which the specified value is to be associated k, final V value to be associated with the specified key v)Overrides default java.
Deprecated
Unsupported operation.
If the specified key is not already associated with a value (or is mapped
to |
| public V | remove(final Object
key whose mapping is to be removed from the map o)Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes the mapping for a key from this map if it is present (optional operation). |
| public V | replace(final K
key with which the specified value is associated k, final V value to be associated with the specified key v)Overrides default java.
Deprecated
Unsupported operation.
Replaces the entry for the specified key only if it is currently mapped to some value (optional operation). |
| public void | replaceAll(final BiFunction<? super K, ? super V, ? extends V>
the function to apply to each entry function)Overrides default java.
Deprecated
Unsupported operation.
Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception (optional operation). |
| AbstractUnmodifiableMap | back to summary |
|---|---|
| public AbstractUnmodifiableMap() | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| compute | back to summary |
|---|---|
| public V compute(final K k, final BiFunction<? super K, ? super V, ? extends V> function) Overrides default java. Doc from java. Deprecated Unsupported operation. Attempts to compute a mapping for the specified key and its current
mapped value, or
(Method merge() is often simpler to use for such purposes.)
If the remapping function returns The remapping function should not modify this map during computation.
| |
| computeIfAbsent | back to summary |
|---|---|
| public V computeIfAbsent(final K k, final Function<? super K, ? extends V> function) Overrides default java. Doc from java. Deprecated Unsupported operation. If the specified key is not already associated with a value (or is mapped
to If the mapping function returns
Or to implement a multi-value map,
The mapping function should not modify this map during computation.
| |
| computeIfPresent | back to summary |
|---|---|
| public V computeIfPresent(final K k, final BiFunction<? super K, ? super V, ? extends V> function) Overrides default java. Doc from java. Deprecated Unsupported operation. If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value (optional operation). If the remapping function returns The remapping function should not modify this map during computation.
| |
| merge | back to summary |
|---|---|
| public V merge(final K k, final V v, final BiFunction<? super V, ? super V, ? extends V> function) Overrides default java. Doc from java. Deprecated Unsupported operation. If the specified key is not already associated with a value or is
associated with null, associates it with the given non-null value (optional
operation). Otherwise, replaces the associated value with the results of
the given remapping function, or removes if the result is
If the remapping function returns The remapping function should not modify this map during computation.
| |
| put | back to summary |
|---|---|
| public V put(final K k, final V v) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(final Map<? extends K, ? extends V> map) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling
| |
| putIfAbsent | back to summary |
|---|---|
| public V putIfAbsent(final K k, final V v) Overrides default java. Doc from java. Deprecated Unsupported operation. If the specified key is not already associated with a value (or is mapped
to
| |
| remove | back to summary |
|---|---|
| public V remove(final Object o) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| replace | back to summary |
|---|---|
| public V replace(final K k, final V v) Overrides default java. Doc from java. Deprecated Unsupported operation. Replaces the entry for the specified key only if it is currently mapped to some value (optional operation).
| |
| replaceAll | back to summary |
|---|---|
| public void replaceAll(final BiFunction<? super K, ? super V, ? extends V> function) Overrides default java. Doc from java. Deprecated Unsupported operation. Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception (optional operation). Exceptions thrown by the function are relayed to the caller.
| |