Package com.google.common.cache
Class LocalCache.StrongEntry<K,V>
java.lang.Object
com.google.common.cache.LocalCache.AbstractReferenceEntry<K,V>
com.google.common.cache.LocalCache.StrongEntry<K,V>
- All Implemented Interfaces:
ReferenceEntry<K,
V>
- Direct Known Subclasses:
LocalCache.StrongAccessEntry
,LocalCache.StrongAccessWriteEntry
,LocalCache.StrongWriteEntry
- Enclosing class:
LocalCache<K,
V>
Used for strongly-referenced keys.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
(package private) final K
(package private) final ReferenceEntry
<K, V> (package private) LocalCache.ValueReference
<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getHash()
Returns the entry's hash.getKey()
Returns the key for this entry.getNext()
Returns the next entry in the chain.Returns the value reference from this entry.void
setValueReference
(LocalCache.ValueReference<K, V> valueReference) Sets the value reference for this entry.Methods inherited from class com.google.common.cache.LocalCache.AbstractReferenceEntry
getAccessTime, getNextInAccessQueue, getNextInWriteQueue, getPreviousInAccessQueue, getPreviousInWriteQueue, getWriteTime, setAccessTime, setNextInAccessQueue, setNextInWriteQueue, setPreviousInAccessQueue, setPreviousInWriteQueue, setWriteTime
-
Field Details
-
key
-
hash
final int hash -
next
-
valueReference
-
-
Constructor Details
-
StrongEntry
StrongEntry(K key, int hash, @CheckForNull ReferenceEntry<K, V> next)
-
-
Method Details
-
getKey
Description copied from interface:ReferenceEntry
Returns the key for this entry.- Specified by:
getKey
in interfaceReferenceEntry<K,
V> - Overrides:
getKey
in classLocalCache.AbstractReferenceEntry<K,
V>
-
getValueReference
Description copied from interface:ReferenceEntry
Returns the value reference from this entry.- Specified by:
getValueReference
in interfaceReferenceEntry<K,
V> - Overrides:
getValueReference
in classLocalCache.AbstractReferenceEntry<K,
V>
-
setValueReference
Description copied from interface:ReferenceEntry
Sets the value reference for this entry.- Specified by:
setValueReference
in interfaceReferenceEntry<K,
V> - Overrides:
setValueReference
in classLocalCache.AbstractReferenceEntry<K,
V>
-
getHash
public int getHash()Description copied from interface:ReferenceEntry
Returns the entry's hash.- Specified by:
getHash
in interfaceReferenceEntry<K,
V> - Overrides:
getHash
in classLocalCache.AbstractReferenceEntry<K,
V>
-
getNext
Description copied from interface:ReferenceEntry
Returns the next entry in the chain.- Specified by:
getNext
in interfaceReferenceEntry<K,
V> - Overrides:
getNext
in classLocalCache.AbstractReferenceEntry<K,
V>
-