R
- Raw value (raw value is immutable)C
- Compiled valuepublic class LRUCache<R,C> extends java.util.LinkedHashMap<java.lang.String,LRUCache.CacheEntry<R,C>>
Modifier and Type | Class and Description |
---|---|
static class |
LRUCache.CacheEntry<R,C>
Generic cache entry.
|
Constructor and Description |
---|
LRUCache(int maxEntries) |
Modifier and Type | Method and Description |
---|---|
void |
putCompiled(java.lang.String key,
C compiled) |
protected boolean |
removeEldestEntry(java.util.Map.Entry<java.lang.String,LRUCache.CacheEntry<R,C>> eldest) |
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
protected boolean removeEldestEntry(java.util.Map.Entry<java.lang.String,LRUCache.CacheEntry<R,C>> eldest)
removeEldestEntry
in class java.util.LinkedHashMap<java.lang.String,LRUCache.CacheEntry<R,C>>
public void putCompiled(java.lang.String key, C compiled)