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
ConstructorsModifierConstructorDescriptionprotectedConcurrentMapperHashMap(ConcurrentMap<IK, IV> innerConcurrentMap) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()protected abstract IKprotected abstract IKmapKeyForQuery(K key) protected abstract IVprotected abstract IVmapValueForQuery(V value) voidputIfAbsent(K key, V value) booleanbooleanintsize()protected abstract Kprotected abstract KunmapKeyForQuery(IK key) protected abstract VunmapValue(IV value) protected abstract VunmapValueForQuery(IV value) values()Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
computeIfAbsentin interfaceConcurrentMap<K,IK> - Specified by:
computeIfAbsentin interfaceMap<K,IK>
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceConcurrentMap<K,IK> - Specified by:
computeIfPresentin interfaceMap<K,IK>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,IK> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,IK> - Overrides:
containsValuein classAbstractMap<K,V>
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,IK> - Specified by:
putIfAbsentin interfaceMap<K,IK>
-
remove
-
remove
-
replace
-
replace
-
size
public int size() -
values
-
mapKey
-
mapKeyForQuery
-
mapValue
-
mapValueForQuery
-
unmapKey
-
unmapKeyForQuery
-
unmapValue
-
unmapValueForQuery
-