Package com.identityworksllc.iiq.common
Interface DelegatedConcurrentMap<K,V>
-
- Type Parameters:
K
-V
-
- All Superinterfaces:
ConcurrentMap<K,V>
,DelegatedMap<K,V>
,Map<K,V>
- All Known Implementing Classes:
TypeFriendlyDelegatedConcurrentMap
public interface DelegatedConcurrentMap<K,V> extends ConcurrentMap<K,V>, DelegatedMap<K,V>
An interface extendingDelegatedMap
to implementConcurrentMap
methods.All method calls will be delegated to the return value of
getDelegate()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConcurrentMap<K,V>
getDelegate()
Gets the map to which all otherMap
calls are delegateddefault V
putIfAbsent(K key, V value)
default boolean
remove(Object key, Object value)
default V
replace(K key, V value)
default boolean
replace(K key, V oldValue, V newValue)
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Methods inherited from interface com.identityworksllc.iiq.common.DelegatedMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
-
-
-
-
Method Detail
-
getDelegate
ConcurrentMap<K,V> getDelegate()
Gets the map to which all otherMap
calls are delegated- Specified by:
getDelegate
in interfaceDelegatedMap<K,V>
- Returns:
- The Map to which all calls are delegated
-
putIfAbsent
default V putIfAbsent(K key, V value)
- Specified by:
putIfAbsent
in interfaceConcurrentMap<K,V>
- Specified by:
putIfAbsent
in interfaceMap<K,V>
-
-