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 boolean
dropMe()
Tell the cache if this entry should be dropped as opposed to being kept in the cache.boolean
equals(java.lang.Object obj)
V1
getValue()
Getter for this cache entry internal value.int
hashCode()
void
removeFromCache()
Call this method on this entry to remove it from the LRUCache.
-
-
-
Method Detail
-
getValue
public V1 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()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-