Package com.google.common.cache
Class RemovalNotification<K,V>
- java.lang.Object
-
- com.google.common.cache.RemovalNotification<K,V>
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
@Beta @GwtCompatible @Deprecated(since="2022-12-01") public final class RemovalNotification<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023A notification of the removal of a single entry. The key and/or value may be null if they were already garbage collected.Like other
Map.Entryinstances associated withCacheBuilder, this class holds strong references to the key and value, regardless of the type of references the cache may be using.- Since:
- 10.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Deprecated.RemovalCausegetCause()Deprecated.Returns the cause for which the entry was removed.KgetKey()Deprecated.VgetValue()Deprecated.inthashCode()Deprecated.VsetValue(V value)Deprecated.java.lang.StringtoString()Deprecated.Returns a string representation of the form{key}={value}.booleanwasEvicted()Deprecated.Returnstrueif there was an automatic removal due to eviction (the cause is neitherRemovalCause.EXPLICITnorRemovalCause.REPLACED).
-
-
-
Method Detail
-
getCause
public RemovalCause getCause()
Deprecated.Returns the cause for which the entry was removed.
-
wasEvicted
public boolean wasEvicted()
Deprecated.Returnstrueif there was an automatic removal due to eviction (the cause is neitherRemovalCause.EXPLICITnorRemovalCause.REPLACED).
-
getKey
@Nullable public K getKey()
Deprecated.
-
getValue
@Nullable public V getValue()
Deprecated.
-
equals
public boolean equals(@Nullable java.lang.Object object)Deprecated.
-
hashCode
public int hashCode()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.Returns a string representation of the form{key}={value}.- Overrides:
toStringin classjava.lang.Object
-
-