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 TypeMethodDescriptionintgetHash()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.voidsetValueReference(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, ReferenceEntry<K, V> next)
-
-
Method Details
-
getKey
Description copied from interface:ReferenceEntryReturns the key for this entry.- Specified by:
getKeyin interfaceReferenceEntry<K,V> - Overrides:
getKeyin classLocalCache.AbstractReferenceEntry<K,V>
-
getValueReference
Description copied from interface:ReferenceEntryReturns the value reference from this entry.- Specified by:
getValueReferencein interfaceReferenceEntry<K,V> - Overrides:
getValueReferencein classLocalCache.AbstractReferenceEntry<K,V>
-
setValueReference
Description copied from interface:ReferenceEntrySets the value reference for this entry.- Specified by:
setValueReferencein interfaceReferenceEntry<K,V> - Overrides:
setValueReferencein classLocalCache.AbstractReferenceEntry<K,V>
-
getHash
public int getHash()Description copied from interface:ReferenceEntryReturns the entry's hash.- Specified by:
getHashin interfaceReferenceEntry<K,V> - Overrides:
getHashin classLocalCache.AbstractReferenceEntry<K,V>
-
getNext
Description copied from interface:ReferenceEntryReturns the next entry in the chain.- Specified by:
getNextin interfaceReferenceEntry<K,V> - Overrides:
getNextin classLocalCache.AbstractReferenceEntry<K,V>
-