public interface SmartCache<K,V> extends Iterable<Map.Entry<K,V>>
This interface implements the Iterable
. The Iterable.iterator()
method returns an iterator over all entries in the cache. The iterator
is mutable.
V put(K key, V value)
key
- Keyvalue
- Valuekey
or nullV remove(K key)
key
- Keyvoid clear()
int size()