K
- V
- public interface IConcurrentWeakValueCache<K,V>
Modifier and Type | Method and Description |
---|---|
int |
capacity()
The capacity of the backing hard reference queue.
|
void |
clear()
Clear all entries in the map.
|
boolean |
containsKey(K k)
Return
true iff the map contains an entry for the key
whose weak reference has not been cleared. |
Iterator<Map.Entry<K,WeakReference<V>>> |
entryIterator()
An iterator that visits the entries in the map.
|
V |
get(K k)
Returns the value for the key.
|
Iterator<WeakReference<V>> |
iterator()
An iterator that visits the weak reference values in the map.
|
V |
put(K k,
V v)
Adds the key-value mapping to the cache.
|
V |
putIfAbsent(K k,
V v)
Adds the key-value mapping to the cache iff there is no entry for that
key.
|
V |
remove(K k)
Remove the entry for the key.
|
int |
size()
Returns the approximate number of keys in the map.
|
int size()
int capacity()
void clear()
boolean containsKey(K k)
true
iff the map contains an entry for the key
whose weak reference has not been cleared.k
- The key.true
iff the map contains an entry for that key
whose weak reference has not been cleared.V put(K k, V v)
k
- The key.v
- The value.null
if there is
no entry under the key or if the entry under the key has has its
reference cleared.V putIfAbsent(K k, V v)
k
- The key.v
- The value.V remove(K k)
k
- The key.Iterator<WeakReference<V>> iterator()
Iterator<Map.Entry<K,WeakReference<V>>> entryIterator()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.