Package ghidra.trace.util
Class CopyOnWrite.AbstractCowMap<K,V>
java.lang.Object
ghidra.trace.util.CopyOnWrite.AbstractCowMap<K,V>
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
CopyOnWrite.HashCowMap
- Enclosing interface:
CopyOnWrite
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) Extension point: Create a mutable copy of the given mapentrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
AbstractCowMap
public AbstractCowMap()
-
-
Method Details
-
copyMap
Extension point: Create a mutable copy of the given map- Parameters:
map- the map to copy- Returns:
- the mutable copy
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<K,V>
-