Class LRUHybridCache.HybridCacheEntryImpl<V1>
java.lang.Object
org.glassfish.hk2.utilities.cache.LRUHybridCache.HybridCacheEntryImpl<V1>
- All Implemented Interfaces:
CacheEntry
,HybridCacheEntry<V1>
- Enclosing class:
LRUHybridCache<K,
V>
private final class LRUHybridCache.HybridCacheEntryImpl<V1>
extends Object
implements HybridCacheEntry<V1>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
key
-
value
-
dropMe
private final boolean dropMe
-
-
Constructor Details
-
HybridCacheEntryImpl
-
-
Method Details
-
getValue
Description copied from interface:HybridCacheEntry
Getter for this cache entry internal value.- Specified by:
getValue
in interfaceHybridCacheEntry<V1>
- Returns:
- Internal value.
-
dropMe
public boolean dropMe()Description copied from interface:HybridCacheEntry
Tell the cache if this entry should be dropped as opposed to being kept in the cache.- Specified by:
dropMe
in interfaceHybridCacheEntry<V1>
- Returns:
- true if the entry should not be cached.
-
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
-
hashCode
public int hashCode() -
equals
-