Package com.google.common.cache
Enum Class LocalCache.NullEntry
- All Implemented Interfaces:
ReferenceEntry<Object,,Object> Serializable,Comparable<LocalCache.NullEntry>,Constable
- Enclosing class:
- LocalCache<K,
V>
private static enum LocalCache.NullEntry
extends Enum<LocalCache.NullEntry>
implements ReferenceEntry<Object,Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the time that this entry was last accessed, in ns.intgetHash()Returns the entry's hash.getKey()Returns the key for this entry.getNext()Returns the next entry in the chain.Returns the next entry in the access queue.Returns the next entry in the write queue.Returns the previous entry in the access queue.Returns the previous entry in the write queue.Returns the value reference from this entry.longvoidsetAccessTime(long time) Sets the entry access time in ns.voidSets the next entry in the access queue.voidSets the next entry in the write queue.voidsetPreviousInAccessQueue(ReferenceEntry<Object, Object> previous) Sets the previous entry in the access queue.voidsetPreviousInWriteQueue(ReferenceEntry<Object, Object> previous) Sets the previous entry in the write queue.voidsetValueReference(LocalCache.ValueReference<Object, Object> valueReference) Sets the value reference for this entry.voidsetWriteTime(long time) Sets the entry write time in ns.static LocalCache.NullEntryReturns the enum constant of this class with the specified name.static LocalCache.NullEntry[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Constructor Details
-
NullEntry
private NullEntry()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValueReference
Description copied from interface:ReferenceEntryReturns the value reference from this entry.- Specified by:
getValueReferencein interfaceReferenceEntry<Object,Object>
-
setValueReference
Description copied from interface:ReferenceEntrySets the value reference for this entry.- Specified by:
setValueReferencein interfaceReferenceEntry<Object,Object>
-
getNext
Description copied from interface:ReferenceEntryReturns the next entry in the chain.- Specified by:
getNextin interfaceReferenceEntry<Object,Object>
-
getHash
public int getHash()Description copied from interface:ReferenceEntryReturns the entry's hash.- Specified by:
getHashin interfaceReferenceEntry<Object,Object>
-
getKey
Description copied from interface:ReferenceEntryReturns the key for this entry.- Specified by:
getKeyin interfaceReferenceEntry<Object,Object>
-
getAccessTime
public long getAccessTime()Description copied from interface:ReferenceEntryReturns the time that this entry was last accessed, in ns.- Specified by:
getAccessTimein interfaceReferenceEntry<Object,Object>
-
setAccessTime
public void setAccessTime(long time) Description copied from interface:ReferenceEntrySets the entry access time in ns.- Specified by:
setAccessTimein interfaceReferenceEntry<Object,Object>
-
getNextInAccessQueue
Description copied from interface:ReferenceEntryReturns the next entry in the access queue.- Specified by:
getNextInAccessQueuein interfaceReferenceEntry<Object,Object>
-
setNextInAccessQueue
Description copied from interface:ReferenceEntrySets the next entry in the access queue.- Specified by:
setNextInAccessQueuein interfaceReferenceEntry<Object,Object>
-
getPreviousInAccessQueue
Description copied from interface:ReferenceEntryReturns the previous entry in the access queue.- Specified by:
getPreviousInAccessQueuein interfaceReferenceEntry<Object,Object>
-
setPreviousInAccessQueue
Description copied from interface:ReferenceEntrySets the previous entry in the access queue.- Specified by:
setPreviousInAccessQueuein interfaceReferenceEntry<Object,Object>
-
getWriteTime
public long getWriteTime()- Specified by:
getWriteTimein interfaceReferenceEntry<Object,Object>
-
setWriteTime
public void setWriteTime(long time) Description copied from interface:ReferenceEntrySets the entry write time in ns.- Specified by:
setWriteTimein interfaceReferenceEntry<Object,Object>
-
getNextInWriteQueue
Description copied from interface:ReferenceEntryReturns the next entry in the write queue.- Specified by:
getNextInWriteQueuein interfaceReferenceEntry<Object,Object>
-
setNextInWriteQueue
Description copied from interface:ReferenceEntrySets the next entry in the write queue.- Specified by:
setNextInWriteQueuein interfaceReferenceEntry<Object,Object>
-
getPreviousInWriteQueue
Description copied from interface:ReferenceEntryReturns the previous entry in the write queue.- Specified by:
getPreviousInWriteQueuein interfaceReferenceEntry<Object,Object>
-
setPreviousInWriteQueue
Description copied from interface:ReferenceEntrySets the previous entry in the write queue.- Specified by:
setPreviousInWriteQueuein interfaceReferenceEntry<Object,Object>
-