public interface Cache<K,V>
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clear all entries in the cache. | 
| boolean | containsKey(K key)True if cache contains a specified key. | 
| V | get(K key)Retrieve a cached value. | 
| V | put(K key,
   V value)Add or replace a cached value. | 
| V | remove(K key)Remove a specific entry from the cache. | 
| int | size()Return current size of cache. | 
void clear()
boolean containsKey(K key)
key - The key to look up.V get(K key)
key - The key of the entry to retrieve.V put(K key, V value)
key - The key of the entry to add.value - The value of the entry to add.V remove(K key)
key - The key of the entry to remove.int size()