K
- the key typeV
- the value typepublic class WeakValueCache<K,V>
extends java.lang.Object
Constructor and Description |
---|
WeakValueCache() |
Modifier and Type | Method and Description |
---|---|
V |
get(K key)
Get the value if in the cache
|
void |
put(K key,
V value)
Put a value
|