|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodeblockutil.LRUCache<K,V>
public class LRUCache<K,V>
This class implements a Least Recently Used cache that stores arbitrary key/value pairs.
Constructor Summary | |
---|---|
LRUCache(int _capacity)
|
Method Summary | |
---|---|
V |
get(K key)
|
void |
put(K key,
V value)
Adds an entry to the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LRUCache(int _capacity)
Method Detail |
---|
public V get(K key)
public void put(K key, V value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |