@GwtCompatible public final class RemovalNotification<K,V> extends AbstractMap.SimpleImmutableEntry<K,V>
Entry instances associated with
CacheBuilder, this class holds
strong references to the key and value, regardless of the type of references the cache may be
|Modifier and Type||Method and Description|
Creates a new
Returns the cause for which the entry was removed.
equals, getKey, getValue, hashCode, setValue, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static <K,V> RemovalNotification<K,V> create(K key, V value, RemovalCause cause)
RemovalNotificationfor the given
valuepair, with the given
causefor the removal. The
nullif they were already garbage collected.
public boolean wasEvicted()
Copyright © 2010–2020. All rights reserved.