Class WeakValueConcurrentMap<K,V>
java.lang.Object
io.roastedroot.zerofs.WeakValueConcurrentMap<K,V>
- All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K, V>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentMap<K, WeakValueConcurrentMap.WeakValue<K, V>> private final ReferenceQueue<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()private voidvoidputIfAbsent(K key, V value) booleanbooleanintsize()values()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Field Details
-
map
-
queue
-
-
Constructor Details
-
WeakValueConcurrentMap
public WeakValueConcurrentMap()
-
-
Method Details
-
processQueue
private void processQueue() -
get
-
put
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
putIfAbsentin interfaceMap<K,V>
-
remove
-
replace
-
replace
-
putAll
-
remove
-
clear
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
keySet
-
size
-
isEmpty
-
entrySet
-
values
-