public static class WeakConcurrentMap.WithInlinedExpunction<K,V> extends WeakConcurrentMap<K,V>
WeakConcurrentMap where stale entries are removed as a side effect of interacting with this map.WeakConcurrentMap.WithInlinedExpunction<K,V>AbstractWeakConcurrentMap.WeakKey<K>| Constructor and Description |
|---|
WithInlinedExpunction() |
| Modifier and Type | Method and Description |
|---|---|
int |
approximateSize()
Returns the approximate size of this map where the returned number is at least as big as the actual number of entries.
|
boolean |
containsKey(K key) |
V |
get(K key) |
Iterator<Map.Entry<K,V>> |
iterator() |
V |
put(K key,
V value) |
V |
remove(K key) |
getCleanerThread, getLookupKey, resetLookupKeyclear, defaultValue, expungeStaleEntries, getIfPresent, putIfAbsent, putIfProbablyAbsent, run, toStringpoll, remove, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic V get(K key)
get in class AbstractWeakConcurrentMap<K,V,com.blogspot.mydailyjava.weaklockfree.WeakConcurrentMap.LookupKey<K>>key - The key of the entry.public boolean containsKey(K key)
containsKey in class AbstractWeakConcurrentMap<K,V,com.blogspot.mydailyjava.weaklockfree.WeakConcurrentMap.LookupKey<K>>key - The key of the entry.true if the key already defines a value.public V put(K key, V value)
put in class AbstractWeakConcurrentMap<K,V,com.blogspot.mydailyjava.weaklockfree.WeakConcurrentMap.LookupKey<K>>key - The key of the entry.value - The value of the entry.null if it does not exist.public V remove(K key)
remove in class AbstractWeakConcurrentMap<K,V,com.blogspot.mydailyjava.weaklockfree.WeakConcurrentMap.LookupKey<K>>key - The key of the entry.null if it does not exist.public int approximateSize()
AbstractWeakConcurrentMapapproximateSize in class AbstractWeakConcurrentMap<K,V,com.blogspot.mydailyjava.weaklockfree.WeakConcurrentMap.LookupKey<K>>Copyright © 2016–2020. All rights reserved.