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 java.lang.Object implements HybridCacheEntry<V1>
-
-
Constructor Summary
Constructors Constructor Description HybridCacheEntryImpl(K key, V1 value, boolean dropMe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandropMe()Tell the cache if this entry should be dropped as opposed to being kept in the cache.booleanequals(java.lang.Object obj)V1getValue()Getter for this cache entry internal value.inthashCode()voidremoveFromCache()Call this method on this entry to remove it from the LRUCache.
-
-
-
Method Detail
-
getValue
public V1 getValue()
Description copied from interface:HybridCacheEntryGetter for this cache entry internal value.- Specified by:
getValuein interfaceHybridCacheEntry<V1>- Returns:
- Internal value.
-
dropMe
public boolean dropMe()
Description copied from interface:HybridCacheEntryTell the cache if this entry should be dropped as opposed to being kept in the cache.- Specified by:
dropMein interfaceHybridCacheEntry<V1>- Returns:
- true if the entry should not be cached.
-
removeFromCache
public void removeFromCache()
Description copied from interface:CacheEntryCall 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:
removeFromCachein interfaceCacheEntry
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-