default method warning: This class forwards calls to only some default methods. Specifically, it forwards calls only for methods that existed before
default methods were introduced. For newer methods, like forEach, it inherits
their default implementations. When those implementations invoke methods, they invoke methods on
the ForwardingConcurrentMap.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract ConcurrentMap | delegate()
Implements abstract com. |
| public V | putIfAbsent(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides default java. Implements java. |
| public boolean | remove(Object
key with which the specified value is associated key, Object value expected to be associated with the specified key value)Overrides default java. Implements java. |
| public V | replace(K
key with which the specified value is associated key, V value to be associated with the specified key value)Overrides default java. Implements java. |
| public boolean | replace(K
key with which the specified value is associated key, V value expected to be associated with the specified key oldValue, V value to be associated with the specified key newValue)Overrides default java. Implements java. |
| ForwardingConcurrentMap | back to summary |
|---|---|
| protected ForwardingConcurrentMap() Constructor for use by subclasses. | |
| delegate | back to summary |
|---|---|
| protected abstract ConcurrentMap Implements abstract com. Doc from com. Returns the backing delegate instance that methods are forwarded to. Abstract subclasses
generally override this method with an abstract method that has a more specific return type,
such as
| |
| putIfAbsent | back to summary |
|---|---|
| public V putIfAbsent(K key, V value) Overrides default java. Implements java. Doc from java. If the specified key is not already associated
with a value, associates it with the given value.
This is equivalent to, for this
except that the action is performed atomically.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object key, Object value) Overrides default java. Implements java. Doc from java. Removes the entry for a key only if currently mapped to a given value.
This is equivalent to, for this
except that the action is performed atomically.
| |
| replace | back to summary |
|---|---|
| public V replace(K key, V value) Overrides default java. Implements java. Doc from java. Replaces the entry for a key only if currently mapped to some value.
This is equivalent to, for this
except that the action is performed atomically.
| |
| replace | back to summary |
|---|---|
| public boolean replace(K key, V oldValue, V newValue) Overrides default java. Implements java. Doc from java. Replaces the entry for a key only if currently mapped to a given value.
This is equivalent to, for this
except that the action is performed atomically.
| |