Package | Description |
---|---|
com.google.common.cache |
This package contains caching utilities.
|
Modifier and Type | Field and Description |
---|---|
private RemovalCause |
RemovalNotification.cause |
Modifier and Type | Method and Description |
---|---|
RemovalCause |
RemovalNotification.getCause()
Returns the cause for which the entry was removed.
|
static RemovalCause |
RemovalCause.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RemovalCause[] |
RemovalCause.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> RemovalNotification<K,V> |
RemovalNotification.create(K key,
V value,
RemovalCause cause)
Creates a new
RemovalNotification for the given key /value pair, with
the given cause for the removal. |
(package private) void |
LocalCache.Segment.enqueueNotification(K key,
int hash,
V value,
int weight,
RemovalCause cause) |
(package private) boolean |
LocalCache.Segment.removeEntry(LocalCache.ReferenceEntry<K,V> entry,
int hash,
RemovalCause cause) |
(package private) LocalCache.ReferenceEntry<K,V> |
LocalCache.Segment.removeValueFromChain(LocalCache.ReferenceEntry<K,V> first,
LocalCache.ReferenceEntry<K,V> entry,
K key,
int hash,
V value,
LocalCache.ValueReference<K,V> valueReference,
RemovalCause cause) |
Constructor and Description |
---|
RemovalNotification(K key,
V value,
RemovalCause cause) |