Cache<K,V>
public class LRUCache<K,V> extends java.lang.Object implements Cache<K,V>
LRUCache(int size)
void
clear()
java.util.Optional<V>
get(K key)
boolean
isEmpty()
put(K key, V value)
int
size()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LRUCache(int size)
public boolean put(K key, V value)
put
public java.util.Optional<V> get(K key)
get
public int size()
size
public boolean isEmpty()
isEmpty
public void clear()
clear