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 TypeMethodDescriptionlong
Returns the time that this entry was last accessed, in ns.int
getHash()
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.long
void
setAccessTime
(long time) Sets the entry access time in ns.void
Sets the next entry in the access queue.void
Sets the next entry in the write queue.void
setPreviousInAccessQueue
(ReferenceEntry<Object, Object> previous) Sets the previous entry in the access queue.void
setPreviousInWriteQueue
(ReferenceEntry<Object, Object> previous) Sets the previous entry in the write queue.void
setValueReference
(LocalCache.ValueReference<Object, Object> valueReference) Sets the value reference for this entry.void
setWriteTime
(long time) Sets the entry write time in ns.static LocalCache.NullEntry
Returns 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:ReferenceEntry
Returns the value reference from this entry.- Specified by:
getValueReference
in interfaceReferenceEntry<Object,
Object>
-
setValueReference
Description copied from interface:ReferenceEntry
Sets the value reference for this entry.- Specified by:
setValueReference
in interfaceReferenceEntry<Object,
Object>
-
getNext
Description copied from interface:ReferenceEntry
Returns the next entry in the chain.- Specified by:
getNext
in interfaceReferenceEntry<Object,
Object>
-
getHash
public int getHash()Description copied from interface:ReferenceEntry
Returns the entry's hash.- Specified by:
getHash
in interfaceReferenceEntry<Object,
Object>
-
getKey
Description copied from interface:ReferenceEntry
Returns the key for this entry.- Specified by:
getKey
in interfaceReferenceEntry<Object,
Object>
-
getAccessTime
public long getAccessTime()Description copied from interface:ReferenceEntry
Returns the time that this entry was last accessed, in ns.- Specified by:
getAccessTime
in interfaceReferenceEntry<Object,
Object>
-
setAccessTime
public void setAccessTime(long time) Description copied from interface:ReferenceEntry
Sets the entry access time in ns.- Specified by:
setAccessTime
in interfaceReferenceEntry<Object,
Object>
-
getNextInAccessQueue
Description copied from interface:ReferenceEntry
Returns the next entry in the access queue.- Specified by:
getNextInAccessQueue
in interfaceReferenceEntry<Object,
Object>
-
setNextInAccessQueue
Description copied from interface:ReferenceEntry
Sets the next entry in the access queue.- Specified by:
setNextInAccessQueue
in interfaceReferenceEntry<Object,
Object>
-
getPreviousInAccessQueue
Description copied from interface:ReferenceEntry
Returns the previous entry in the access queue.- Specified by:
getPreviousInAccessQueue
in interfaceReferenceEntry<Object,
Object>
-
setPreviousInAccessQueue
Description copied from interface:ReferenceEntry
Sets the previous entry in the access queue.- Specified by:
setPreviousInAccessQueue
in interfaceReferenceEntry<Object,
Object>
-
getWriteTime
public long getWriteTime()- Specified by:
getWriteTime
in interfaceReferenceEntry<Object,
Object>
-
setWriteTime
public void setWriteTime(long time) Description copied from interface:ReferenceEntry
Sets the entry write time in ns.- Specified by:
setWriteTime
in interfaceReferenceEntry<Object,
Object>
-
getNextInWriteQueue
Description copied from interface:ReferenceEntry
Returns the next entry in the write queue.- Specified by:
getNextInWriteQueue
in interfaceReferenceEntry<Object,
Object>
-
setNextInWriteQueue
Description copied from interface:ReferenceEntry
Sets the next entry in the write queue.- Specified by:
setNextInWriteQueue
in interfaceReferenceEntry<Object,
Object>
-
getPreviousInWriteQueue
Description copied from interface:ReferenceEntry
Returns the previous entry in the write queue.- Specified by:
getPreviousInWriteQueue
in interfaceReferenceEntry<Object,
Object>
-
setPreviousInWriteQueue
Description copied from interface:ReferenceEntry
Sets the previous entry in the write queue.- Specified by:
setPreviousInWriteQueue
in interfaceReferenceEntry<Object,
Object>
-