Package com.google.common.cache
Enum LocalCache.NullEntry
- java.lang.Object
-
- java.lang.Enum<LocalCache.NullEntry>
-
- com.google.common.cache.LocalCache.NullEntry
-
- All Implemented Interfaces:
LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
,java.io.Serializable
,java.lang.Comparable<LocalCache.NullEntry>
- Enclosing class:
- LocalCache<K,V>
private static enum LocalCache.NullEntry extends java.lang.Enum<LocalCache.NullEntry> implements LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
NullEntry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAccessTime()
Returns the time that this entry was last accessed, in ns.int
getHash()
Returns the entry's hash.java.lang.Object
getKey()
Returns the key for this entry.LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
getNext()
Returns the next entry in the chain.LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
getNextInAccessQueue()
Returns the next entry in the access queue.LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
getNextInWriteQueue()
Returns the next entry in the write queue.LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
getPreviousInAccessQueue()
Returns the previous entry in the access queue.LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
getPreviousInWriteQueue()
Returns the previous entry in the write queue.LocalCache.ValueReference<java.lang.Object,java.lang.Object>
getValueReference()
Returns the value reference from this entry.long
getWriteTime()
Returns the time that this entry was last written, in ns.void
setAccessTime(long time)
Sets the entry access time in ns.void
setNextInAccessQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> next)
Sets the next entry in the access queue.void
setNextInWriteQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> next)
Sets the next entry in the write queue.void
setPreviousInAccessQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> previous)
Sets the previous entry in the access queue.void
setPreviousInWriteQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> previous)
Sets the previous entry in the write queue.void
setValueReference(LocalCache.ValueReference<java.lang.Object,java.lang.Object> valueReference)
Sets the value reference for this entry.void
setWriteTime(long time)
Sets the entry write time in ns.static LocalCache.NullEntry
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LocalCache.NullEntry[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final LocalCache.NullEntry INSTANCE
-
-
Method Detail
-
values
public static LocalCache.NullEntry[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LocalCache.NullEntry c : LocalCache.NullEntry.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocalCache.NullEntry valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValueReference
public LocalCache.ValueReference<java.lang.Object,java.lang.Object> getValueReference()
Description copied from interface:LocalCache.ReferenceEntry
Returns the value reference from this entry.- Specified by:
getValueReference
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setValueReference
public void setValueReference(LocalCache.ValueReference<java.lang.Object,java.lang.Object> valueReference)
Description copied from interface:LocalCache.ReferenceEntry
Sets the value reference for this entry.- Specified by:
setValueReference
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getNext
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getNext()
Description copied from interface:LocalCache.ReferenceEntry
Returns the next entry in the chain.- Specified by:
getNext
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getHash
public int getHash()
Description copied from interface:LocalCache.ReferenceEntry
Returns the entry's hash.- Specified by:
getHash
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getKey
public java.lang.Object getKey()
Description copied from interface:LocalCache.ReferenceEntry
Returns the key for this entry.- Specified by:
getKey
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getAccessTime
public long getAccessTime()
Description copied from interface:LocalCache.ReferenceEntry
Returns the time that this entry was last accessed, in ns.- Specified by:
getAccessTime
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setAccessTime
public void setAccessTime(long time)
Description copied from interface:LocalCache.ReferenceEntry
Sets the entry access time in ns.- Specified by:
setAccessTime
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getNextInAccessQueue
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getNextInAccessQueue()
Description copied from interface:LocalCache.ReferenceEntry
Returns the next entry in the access queue.- Specified by:
getNextInAccessQueue
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setNextInAccessQueue
public void setNextInAccessQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> next)
Description copied from interface:LocalCache.ReferenceEntry
Sets the next entry in the access queue.- Specified by:
setNextInAccessQueue
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getPreviousInAccessQueue
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getPreviousInAccessQueue()
Description copied from interface:LocalCache.ReferenceEntry
Returns the previous entry in the access queue.- Specified by:
getPreviousInAccessQueue
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setPreviousInAccessQueue
public void setPreviousInAccessQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> previous)
Description copied from interface:LocalCache.ReferenceEntry
Sets the previous entry in the access queue.- Specified by:
setPreviousInAccessQueue
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getWriteTime
public long getWriteTime()
Description copied from interface:LocalCache.ReferenceEntry
Returns the time that this entry was last written, in ns.- Specified by:
getWriteTime
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setWriteTime
public void setWriteTime(long time)
Description copied from interface:LocalCache.ReferenceEntry
Sets the entry write time in ns.- Specified by:
setWriteTime
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getNextInWriteQueue
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getNextInWriteQueue()
Description copied from interface:LocalCache.ReferenceEntry
Returns the next entry in the write queue.- Specified by:
getNextInWriteQueue
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setNextInWriteQueue
public void setNextInWriteQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> next)
Description copied from interface:LocalCache.ReferenceEntry
Sets the next entry in the write queue.- Specified by:
setNextInWriteQueue
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getPreviousInWriteQueue
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getPreviousInWriteQueue()
Description copied from interface:LocalCache.ReferenceEntry
Returns the previous entry in the write queue.- Specified by:
getPreviousInWriteQueue
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setPreviousInWriteQueue
public void setPreviousInWriteQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> previous)
Description copied from interface:LocalCache.ReferenceEntry
Sets the previous entry in the write queue.- Specified by:
setPreviousInWriteQueue
in interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
-