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 privateNullEntry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAccessTime()Returns the time that this entry was last accessed, in ns.intgetHash()Returns the entry's hash.java.lang.ObjectgetKey()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.longgetWriteTime()Returns the time that this entry was last written, in ns.voidsetAccessTime(long time)Sets the entry access time in ns.voidsetNextInAccessQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> next)Sets the next entry in the access queue.voidsetNextInWriteQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> next)Sets the next entry in the write queue.voidsetPreviousInAccessQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> previous)Sets the previous entry in the access queue.voidsetPreviousInWriteQueue(LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> previous)Sets the previous entry in the write queue.voidsetValueReference(LocalCache.ValueReference<java.lang.Object,java.lang.Object> valueReference)Sets the value reference for this entry.voidsetWriteTime(long time)Sets the entry write time in ns.static LocalCache.NullEntryvalueOf(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.ReferenceEntryReturns the value reference from this entry.- Specified by:
getValueReferencein 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.ReferenceEntrySets the value reference for this entry.- Specified by:
setValueReferencein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getNext
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getNext()
Description copied from interface:LocalCache.ReferenceEntryReturns the next entry in the chain.- Specified by:
getNextin interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getHash
public int getHash()
Description copied from interface:LocalCache.ReferenceEntryReturns the entry's hash.- Specified by:
getHashin interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getKey
public java.lang.Object getKey()
Description copied from interface:LocalCache.ReferenceEntryReturns the key for this entry.- Specified by:
getKeyin interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getAccessTime
public long getAccessTime()
Description copied from interface:LocalCache.ReferenceEntryReturns the time that this entry was last accessed, in ns.- Specified by:
getAccessTimein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setAccessTime
public void setAccessTime(long time)
Description copied from interface:LocalCache.ReferenceEntrySets the entry access time in ns.- Specified by:
setAccessTimein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getNextInAccessQueue
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getNextInAccessQueue()
Description copied from interface:LocalCache.ReferenceEntryReturns the next entry in the access queue.- Specified by:
getNextInAccessQueuein 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.ReferenceEntrySets the next entry in the access queue.- Specified by:
setNextInAccessQueuein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getPreviousInAccessQueue
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getPreviousInAccessQueue()
Description copied from interface:LocalCache.ReferenceEntryReturns the previous entry in the access queue.- Specified by:
getPreviousInAccessQueuein 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.ReferenceEntrySets the previous entry in the access queue.- Specified by:
setPreviousInAccessQueuein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getWriteTime
public long getWriteTime()
Description copied from interface:LocalCache.ReferenceEntryReturns the time that this entry was last written, in ns.- Specified by:
getWriteTimein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
setWriteTime
public void setWriteTime(long time)
Description copied from interface:LocalCache.ReferenceEntrySets the entry write time in ns.- Specified by:
setWriteTimein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getNextInWriteQueue
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getNextInWriteQueue()
Description copied from interface:LocalCache.ReferenceEntryReturns the next entry in the write queue.- Specified by:
getNextInWriteQueuein 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.ReferenceEntrySets the next entry in the write queue.- Specified by:
setNextInWriteQueuein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
getPreviousInWriteQueue
public LocalCache.ReferenceEntry<java.lang.Object,java.lang.Object> getPreviousInWriteQueue()
Description copied from interface:LocalCache.ReferenceEntryReturns the previous entry in the write queue.- Specified by:
getPreviousInWriteQueuein 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.ReferenceEntrySets the previous entry in the write queue.- Specified by:
setPreviousInWriteQueuein interfaceLocalCache.ReferenceEntry<java.lang.Object,java.lang.Object>
-
-