|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - V - public interface IConcurrentWeakValueCache<K,V>
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
int size()
int capacity()
void clear()
V get(K k)
k - The key.
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||