public interface UESCache<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
evict(K key) |
V |
get(K key)
Returns the value to which the specified key is mapped, or
null if this map contains no mapping for the key. |
void |
put(K key,
Associates the specified value with the specified key in this cache.
|
null if this map contains no mapping for the key.
More formally, if this cache contains a mapping from a key k to a value v such that (key==null ? k==null : key.equals(k))
, then this method returns v; otherwise it returns null. (There can be at most one such mapping.)
key - the key whose associated value is to be returnednull if this cache contains no mapping for the keyjava.lang.NullPointerException - if the specified key is null and this map does not permit null keys (optional)m.containsKey(k) would return true.)key - key with which the specified value is to be associatedvalue - value to be associated with the specified key