static class LocalCache.StrongEntry<K,V> extends LocalCache.AbstractReferenceEntry<K,V>
Modifier and Type | Field and Description |
---|---|
(package private) int |
hash |
(package private) K |
key |
(package private) ReferenceEntry<K,V> |
next |
(package private) LocalCache.ValueReference<K,V> |
valueReference |
Constructor and Description |
---|
StrongEntry(K key,
int hash,
ReferenceEntry<K,V> next) |
Modifier and Type | Method and Description |
---|---|
int |
getHash()
Returns the entry's hash.
|
K |
getKey()
Returns the key for this entry.
|
ReferenceEntry<K,V> |
getNext()
Returns the next entry in the chain.
|
LocalCache.ValueReference<K,V> |
getValueReference()
Returns the value reference from this entry.
|
void |
setValueReference(LocalCache.ValueReference<K,V> valueReference)
Sets the value reference for this entry.
|
getAccessTime, getNextInAccessQueue, getNextInWriteQueue, getPreviousInAccessQueue, getPreviousInWriteQueue, getWriteTime, setAccessTime, setNextInAccessQueue, setNextInWriteQueue, setPreviousInAccessQueue, setPreviousInWriteQueue, setWriteTime
final K key
final int hash
final ReferenceEntry<K,V> next
volatile LocalCache.ValueReference<K,V> valueReference
StrongEntry(K key, int hash, ReferenceEntry<K,V> next)
public K getKey()
ReferenceEntry
getKey
in interface ReferenceEntry<K,V>
getKey
in class LocalCache.AbstractReferenceEntry<K,V>
public LocalCache.ValueReference<K,V> getValueReference()
ReferenceEntry
getValueReference
in interface ReferenceEntry<K,V>
getValueReference
in class LocalCache.AbstractReferenceEntry<K,V>
public void setValueReference(LocalCache.ValueReference<K,V> valueReference)
ReferenceEntry
setValueReference
in interface ReferenceEntry<K,V>
setValueReference
in class LocalCache.AbstractReferenceEntry<K,V>
public int getHash()
ReferenceEntry
getHash
in interface ReferenceEntry<K,V>
getHash
in class LocalCache.AbstractReferenceEntry<K,V>
public ReferenceEntry<K,V> getNext()
ReferenceEntry
getNext
in interface ReferenceEntry<K,V>
getNext
in class LocalCache.AbstractReferenceEntry<K,V>