private static class LRUCacheCheapRead.CacheEntryImpl<K,V> extends java.lang.Object implements CacheEntry
Modifier and Type | Field and Description |
---|---|
(package private) K |
key |
(package private) long |
lastHit |
(package private) LRUCacheCheapRead<K,V> |
parent |
(package private) V |
value |
Constructor and Description |
---|
CacheEntryImpl(K k,
V v,
LRUCacheCheapRead<K,V> cache) |
Modifier and Type | Method and Description |
---|---|
LRUCacheCheapRead.CacheEntryImpl<K,V> |
hit() |
void |
removeFromCache()
Call this method on this entry to remove it from the LRUCache.
|
final K key
final V value
final LRUCacheCheapRead<K,V> parent
long lastHit
public CacheEntryImpl(K k, V v, LRUCacheCheapRead<K,V> cache)
public void removeFromCache()
CacheEntry
removeFromCache
in interface CacheEntry
public LRUCacheCheapRead.CacheEntryImpl<K,V> hit()