Top Description Methods
com.google.common.cache

pack-priv Interface ReferenceEntry<K, V>

Known Direct Implementers
com.google.common.cache.LocalCache.NullEntry, com.google.common.cache.LocalCache.AbstractReferenceEntry, com.google.common.cache.LocalCache.WeakEntry
Annotations
@GwtIncompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtIncompatible, com.google.common.cache.LocalCache.ValueReference, javax.annotation.CheckForNull

An entry in a reference map.

Entries in the map can be in the following states:

Valid:

Invalid:

Method Summary

Modifier and TypeMethod and Description
public long
getAccessTime()

Returns the time that this entry was last accessed, in ns.

public int
getHash()

Returns the entry's hash.

public K
getKey()

Returns the key for this entry.

public ReferenceEntry<K, V>
getNext()

Returns the next entry in the chain.

public ReferenceEntry<K, V>
getNextInAccessQueue()

Returns the next entry in the access queue.

public ReferenceEntry<K, V>
getNextInWriteQueue()

Returns the next entry in the write queue.

public ReferenceEntry<K, V>
getPreviousInAccessQueue()

Returns the previous entry in the access queue.

public ReferenceEntry<K, V>
getPreviousInWriteQueue()

Returns the previous entry in the write queue.

public LocalCache.ValueReference<K, V>
getValueReference()

Returns the value reference from this entry.

public long
public void
setAccessTime(long time)

Sets the entry access time in ns.

public void
setNextInAccessQueue(ReferenceEntry<K, V> next)

Sets the next entry in the access queue.

public void
setNextInWriteQueue(ReferenceEntry<K, V> next)

Sets the next entry in the write queue.

public void
setPreviousInAccessQueue(ReferenceEntry<K, V> previous)

Sets the previous entry in the access queue.

public void
setPreviousInWriteQueue(ReferenceEntry<K, V> previous)

Sets the previous entry in the write queue.

public void
setValueReference(LocalCache.ValueReference<K, V> valueReference)

Sets the value reference for this entry.

public void
setWriteTime(long time)

Sets the entry write time in ns.

Method Detail

getAccessTimeback to summary
public long getAccessTime()

Returns the time that this entry was last accessed, in ns.

Annotations
@SuppressWarnings:GoodTime
getHashback to summary
public int getHash()

Returns the entry's hash.

getKeyback to summary
public K getKey()

Returns the key for this entry.

Annotations
@CheckForNull
getNextback to summary
public ReferenceEntry<K, V> getNext()

Returns the next entry in the chain.

Annotations
@CheckForNull
getNextInAccessQueueback to summary
public ReferenceEntry<K, V> getNextInAccessQueue()

Returns the next entry in the access queue.

getNextInWriteQueueback to summary
public ReferenceEntry<K, V> getNextInWriteQueue()

Returns the next entry in the write queue.

getPreviousInAccessQueueback to summary
public ReferenceEntry<K, V> getPreviousInAccessQueue()

Returns the previous entry in the access queue.

getPreviousInWriteQueueback to summary
public ReferenceEntry<K, V> getPreviousInWriteQueue()

Returns the previous entry in the write queue.

getValueReferenceback to summary
public LocalCache.ValueReference<K, V> getValueReference()

Returns the value reference from this entry.

Annotations
@CheckForNull
getWriteTimeback to summary
public long getWriteTime()
Annotations
@SuppressWarnings:GoodTime
setAccessTimeback to summary
public void setAccessTime(long time)

Sets the entry access time in ns.

Annotations
@SuppressWarnings:GoodTime
setNextInAccessQueueback to summary
public void setNextInAccessQueue(ReferenceEntry<K, V> next)

Sets the next entry in the access queue.

setNextInWriteQueueback to summary
public void setNextInWriteQueue(ReferenceEntry<K, V> next)

Sets the next entry in the write queue.

setPreviousInAccessQueueback to summary
public void setPreviousInAccessQueue(ReferenceEntry<K, V> previous)

Sets the previous entry in the access queue.

setPreviousInWriteQueueback to summary
public void setPreviousInWriteQueue(ReferenceEntry<K, V> previous)

Sets the previous entry in the write queue.

setValueReferenceback to summary
public void setValueReference(LocalCache.ValueReference<K, V> valueReference)

Sets the value reference for this entry.

setWriteTimeback to summary
public void setWriteTime(long time)

Sets the entry write time in ns.

Annotations
@SuppressWarnings:GoodTime