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) LocalCache.ReferenceEntry<K,V> |
next |
(package private) LocalCache.ValueReference<K,V> |
valueReference |
| Constructor and Description |
|---|
StrongEntry(K key,
int hash,
LocalCache.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.
|
LocalCache.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, setWriteTimefinal K key
final int hash
final LocalCache.ReferenceEntry<K,V> next
volatile LocalCache.ValueReference<K,V> valueReference
StrongEntry(K key, int hash, @Nullable LocalCache.ReferenceEntry<K,V> next)
public K getKey()
LocalCache.ReferenceEntrygetKey in interface LocalCache.ReferenceEntry<K,V>getKey in class LocalCache.AbstractReferenceEntry<K,V>public LocalCache.ValueReference<K,V> getValueReference()
LocalCache.ReferenceEntrygetValueReference in interface LocalCache.ReferenceEntry<K,V>getValueReference in class LocalCache.AbstractReferenceEntry<K,V>public void setValueReference(LocalCache.ValueReference<K,V> valueReference)
LocalCache.ReferenceEntrysetValueReference in interface LocalCache.ReferenceEntry<K,V>setValueReference in class LocalCache.AbstractReferenceEntry<K,V>public int getHash()
LocalCache.ReferenceEntrygetHash in interface LocalCache.ReferenceEntry<K,V>getHash in class LocalCache.AbstractReferenceEntry<K,V>public LocalCache.ReferenceEntry<K,V> getNext()
LocalCache.ReferenceEntrygetNext in interface LocalCache.ReferenceEntry<K,V>getNext in class LocalCache.AbstractReferenceEntry<K,V>