Package org.jboss.logmanager
Class CopyOnWriteWeakMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.jboss.logmanager.CopyOnWriteWeakMap<K,V>
- All Implemented Interfaces:
ConcurrentMap<K,
,V> Map<K,
V>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
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
FieldsModifier and TypeFieldDescriptionprivate static final FastCopyHashMap
private FastCopyHashMap<K,
CopyOnWriteWeakMap.Node<K, V>> private final CopyOnWriteWeakMap.Queue<K,
V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate FastCopyHashMap<K,
CopyOnWriteWeakMap.Node<K, V>> private FastCopyHashMap<K,
CopyOnWriteWeakMap.Node<K, V>> void
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) private FastCopyHashMap<K,
CopyOnWriteWeakMap.Node<K, V>> empty()
entrySet()
boolean
isEmpty()
putIfAbsent
(K key, V value) boolean
boolean
int
size()
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, keySet, putAll, toString, 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
-
queue
-
EMPTY
-
map
-
-
Constructor Details
-
CopyOnWriteWeakMap
CopyOnWriteWeakMap()
-
-
Method Details
-
empty
-
cleanCopyForRemove
-
cleanCopyForMod
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceConcurrentMap<K,
V> - Specified by:
putIfAbsent
in interfaceMap<K,
V>
-
remove
-
replace
-
replace
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classAbstractMap<K,
V>
-
get
-
put
-
remove
-
clear
public void clear() -
entrySet
-