private final class LRUHybridCache.HybridCacheEntryImpl<V1> extends java.lang.Object implements HybridCacheEntry<V1>
Modifier and Type | Field and Description |
---|---|
private boolean |
dropMe |
private K |
key |
private V1 |
value |
Constructor and Description |
---|
HybridCacheEntryImpl(K key,
V1 value,
boolean dropMe) |
Modifier and Type | Method and 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.
|
private final K key
private final V1 value
private final boolean dropMe
public V1 getValue()
HybridCacheEntry
getValue
in interface HybridCacheEntry<V1>
public boolean dropMe()
HybridCacheEntry
dropMe
in interface HybridCacheEntry<V1>
public void removeFromCache()
CacheEntry
removeFromCache
in interface CacheEntry
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object