Package org.jboss.logmanager
Class CopyOnWriteMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.jboss.logmanager.CopyOnWriteMap<K,V>
- All Implemented Interfaces:
Cloneable
,ConcurrentMap<K,
,V> Map<K,
V>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final FastCopyHashMap
private FastCopyHashMap
<K, V> private static final AtomicReferenceFieldUpdater
<CopyOnWriteMap, FastCopyHashMap> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
keySet()
putIfAbsent
(K key, V value) boolean
boolean
int
size()
values()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Field Details
-
EMPTY
-
map
-
mapUpdater
-
-
Constructor Details
-
CopyOnWriteMap
CopyOnWriteMap()
-
-
Method Details
-
get
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
size
public int size() -
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classAbstractMap<K,
V>
-
clear
public void clear() -
put
-
remove
-
clone
- Overrides:
clone
in classAbstractMap<K,
V>
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceConcurrentMap<K,
V> - Specified by:
putIfAbsent
in interfaceMap<K,
V>
-
remove
-
replace
-
replace
-
keySet
-
values
-
entrySet
-