Package com.liferay.petra.concurrent
Class ConcurrentMapperHashMap<K,IK,V,IV>
java.lang.Object
java.util.AbstractMap<K,V>
com.liferay.petra.concurrent.ConcurrentMapperHashMap<K,IK,V,IV>
- All Implemented Interfaces:
Serializable
,ConcurrentMap<K,
,V> Map<K,
V>
- Direct Known Subclasses:
ConcurrentIdentityHashMap
,ConcurrentReferenceKeyHashMap
,ConcurrentReferenceValueHashMap
public abstract class ConcurrentMapperHashMap<K,IK,V,IV>
extends AbstractMap<K,V>
implements ConcurrentMap<K,V>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConcurrentMapperHashMap
(ConcurrentMap<IK, IV> innerConcurrentMap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
computeIfAbsent
(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent
(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
isEmpty()
keySet()
protected abstract IK
protected abstract IK
mapKeyForQuery
(K key) protected abstract IV
protected abstract IV
mapValueForQuery
(V value) void
putIfAbsent
(K key, V value) boolean
boolean
int
size()
protected abstract K
protected abstract K
unmapKeyForQuery
(IK key) protected abstract V
unmapValue
(IV value) protected abstract V
unmapValueForQuery
(IV value) values()
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault, merge, replaceAll
-
Field Details
-
entrySet
-
innerConcurrentMap
-
keySet
-
values
-
-
Constructor Details
-
ConcurrentMapperHashMap
-
-
Method Details
-
clear
public void clear() -
compute
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceConcurrentMap<K,
IK> - Specified by:
computeIfAbsent
in interfaceMap<K,
IK>
-
computeIfPresent
- Specified by:
computeIfPresent
in interfaceConcurrentMap<K,
IK> - Specified by:
computeIfPresent
in interfaceMap<K,
IK>
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
IK> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
IK> - Overrides:
containsValue
in classAbstractMap<K,
V>
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceConcurrentMap<K,
IK> - Specified by:
putIfAbsent
in interfaceMap<K,
IK>
-
remove
-
remove
-
replace
-
replace
-
size
public int size() -
values
-
mapKey
-
mapKeyForQuery
-
mapValue
-
mapValueForQuery
-
unmapKey
-
unmapKeyForQuery
-
unmapValue
-
unmapValueForQuery
-