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 classprivate static final classNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final FastCopyHashMapprivate 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>> voidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) private FastCopyHashMap<K, CopyOnWriteWeakMap.Node<K, V>> empty()entrySet()booleanisEmpty()putIfAbsent(K key, V value) booleanbooleanintsize()Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, keySet, putAll, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
putIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
putIfAbsentin interfaceMap<K,V>
-
remove
-
replace
-
replace
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMap<K,V>
-
get
-
put
-
remove
-
clear
public void clear() -
entrySet
-