Class WeakConcurrentMap.WithInlinedExpunction<K,V>
java.lang.Object
java.lang.ref.ReferenceQueue<K>
org.mockito.internal.util.concurrent.WeakConcurrentMap<K,V>
org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction<K,V>
- Enclosing class:
WeakConcurrentMap<K,V>
A
WeakConcurrentMap where stale entries are removed as a side effect of interacting with this map.-
Nested Class Summary
Nested classes/interfaces inherited from class WeakConcurrentMap
WeakConcurrentMap.WithInlinedExpunction<K,V> -
Field Summary
Fields inherited from class WeakConcurrentMap
target -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class WeakConcurrentMap
clear, defaultValue, expungeStaleEntries, getCleanerThread, runMethods inherited from class ReferenceQueue
poll, remove, removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
WithInlinedExpunction
public WithInlinedExpunction()
-
-
Method Details
-
get
-
containsKey
- Overrides:
containsKeyin classWeakConcurrentMap<K,V> - Parameters:
key- The key of the entry.- Returns:
trueif the key already defines a value.
-
put
-
remove
-
iterator
-
approximateSize
public int approximateSize()Description copied from class:WeakConcurrentMapReturns the approximate size of this map where the returned number is at least as big as the actual number of entries.- Overrides:
approximateSizein classWeakConcurrentMap<K,V> - Returns:
- The minimum size of this map.
-