Class LRUCacheCheapRead.CacheEntryImpl<K,V>
- java.lang.Object
-
- org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead.CacheEntryImpl<K,V>
-
- All Implemented Interfaces:
CacheEntry
- Enclosing class:
- LRUCacheCheapRead<K,V>
private static class LRUCacheCheapRead.CacheEntryImpl<K,V> extends java.lang.Object implements CacheEntry
-
-
Constructor Summary
Constructors Constructor Description CacheEntryImpl(K k, V v, LRUCacheCheapRead<K,V> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LRUCacheCheapRead.CacheEntryImpl<K,V>
hit()
void
removeFromCache()
Call this method on this entry to remove it from the LRUCache.
-
-
-
Field Detail
-
key
final K key
-
value
final V value
-
parent
final LRUCacheCheapRead<K,V> parent
-
lastHit
long lastHit
-
-
Constructor Detail
-
CacheEntryImpl
public CacheEntryImpl(K k, V v, LRUCacheCheapRead<K,V> cache)
-
-
Method Detail
-
removeFromCache
public void removeFromCache()
Description copied from interface:CacheEntry
Call this method on this entry to remove it from the LRUCache. If this entry has already been removed this method will do nothing.- Specified by:
removeFromCache
in interfaceCacheEntry
-
hit
public LRUCacheCheapRead.CacheEntryImpl<K,V> hit()
-
-