public class HardSmartCache<K,V> extends Object implements SmartCache<K,V>
SmartCache that uses hard
references. Used for testing.| Constructor and Description |
|---|
HardSmartCache() |
public V put(K key, V value)
SmartCacheput in interface SmartCache<K,V>key - Keyvalue - Valuekey or nullpublic V remove(K key)
SmartCacheremove in interface SmartCache<K,V>key - Keypublic void clear()
clear in interface SmartCache<K,V>public int size()
size in interface SmartCache<K,V>