public final class RemovalNotification<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>
| Modifier and Type | Method and Description |
|---|---|
static <K,V> RemovalNotification<K,V> |
create(K key,
V value,
RemovalCause cause)
Creates a new
RemovalNotification for the given key/value pair, with
the given cause for the removal. |
boolean |
equals(java.lang.Object object) |
K |
getKey() |
V |
getValue() |
int |
hashCode() |
V |
setValue(V value) |
java.lang.String |
toString()
Returns a string representation of the form
{key}={value}. |
@Nonnull public static <K,V> RemovalNotification<K,V> create(K key, V value, @Nonnull RemovalCause cause)
RemovalNotification for the given key/value pair, with
the given cause for the removal. The key and/or value may be
null if they were already garbage collected.public boolean equals(java.lang.Object object)
public int hashCode()
@Nonnull public java.lang.String toString()
{key}={value}.toString in class java.lang.Object