Class ConcurrentMapWrapper<K,V,W extends Map<K,V>>
java.lang.Object
ru.progrm_jarvis.javacommons.collection.concurrent.ConcurrentWrapper<W>
ru.progrm_jarvis.javacommons.collection.concurrent.AbstractConcurrentSizedCollectionWrapper<W>
ru.progrm_jarvis.javacommons.collection.concurrent.ConcurrentMapWrapper<K,V,W>
- All Implemented Interfaces:
Map<K,,V> SizedCollection
public class ConcurrentMapWrapper<K,V,W extends Map<K,V>>
extends AbstractConcurrentSizedCollectionWrapper<W>
implements Map<K,V>
-
Nested Class Summary
-
Field Summary
Fields inherited from class ru.progrm_jarvis.javacommons.collection.concurrent.ConcurrentWrapper
readLock, wrapped, writeLock -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConcurrentMapWrapper(W wrapped, @NotNull Lock readLock, @NotNull Lock writeLock) -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent(K key, @NonNull Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) static <K,V> @NotNull Map<K, V> entrySet()voidforEach(@NonNull BiConsumer<? super K, ? super V> action) getOrDefault(Object key, V defaultValue) protected voidprotected booleanprotected intkeySet()voidputIfAbsent(K key, V value) booleanbooleanvoidreplaceAll(@NonNull BiFunction<? super K, ? super V, ? extends V> function) @NotNull Collection<V>values()Methods inherited from class ru.progrm_jarvis.javacommons.collection.concurrent.AbstractConcurrentSizedCollectionWrapper
clear, isEmpty, sizeMethods inherited from class ru.progrm_jarvis.javacommons.collection.concurrent.ConcurrentWrapper
equals, hashCode, toString
-
Constructor Details
-
ConcurrentMapWrapper
-
-
Method Details
-
create
-
internalSize
protected int internalSize()- Specified by:
internalSizein classAbstractConcurrentSizedCollectionWrapper<W extends Map<K,V>>
-
internalIsEmpty
protected boolean internalIsEmpty()- Specified by:
internalIsEmptyin classAbstractConcurrentSizedCollectionWrapper<W extends Map<K,V>>
-
internalClear
protected void internalClear()- Specified by:
internalClearin classAbstractConcurrentSizedCollectionWrapper<W extends Map<K,V>>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
remove
-
putAll
-
keySet
-
values
-
entrySet
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<K,V>
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<K,V>
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfPresent
public V computeIfPresent(K key, @NonNull @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<K,V>
-
compute
-
merge
-