public abstract class ForwardingConcurrentMap<K,V> extends ForwardingMap<K,V> implements java.util.concurrent.ConcurrentMap<K,V>
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.
ForwardingMap.StandardEntrySet, ForwardingMap.StandardKeySet, ForwardingMap.StandardValues| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingConcurrentMap()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.concurrent.ConcurrentMap<K,V> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
V |
putIfAbsent(K key,
V value) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, valuestoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected ForwardingConcurrentMap()
protected abstract java.util.concurrent.ConcurrentMap<K,V> delegate()
ForwardingObjectForwardingSet.delegate(). Concrete subclasses override this method to supply the
instance being decorated.delegate in class ForwardingMap<K,V>public boolean remove(@CheckForNull
java.lang.Object key,
@CheckForNull
java.lang.Object value)