public class LruCache<K,V> extends Object
| Constructor and Description |
|---|
LruCache(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
protected V |
create(K key) |
int |
createCount() |
protected void |
entryRemoved(boolean evicted,
K key,
V oldValue,
V newValue) |
void |
evictAll() |
int |
evictionCount() |
V |
get(K key) |
int |
hitCount() |
int |
maxSize() |
int |
missCount() |
V |
put(K key,
V value) |
int |
putCount() |
V |
remove(K key) |
int |
size() |
protected int |
sizeOf(K key,
V value) |
Map<K,V> |
snapshot() |
String |
toString() |
public final void evictAll()
public final int size()
public final int maxSize()
public final int hitCount()
public final int missCount()
public final int createCount()
public final int putCount()
public final int evictionCount()
Copyright © 2008-2013. All Rights Reserved.