Class JCacheEntryEvent<K,V>
java.lang.Object
java.util.EventObject
javax.cache.event.CacheEntryEvent<K,V>
com.github.benmanes.caffeine.jcache.event.JCacheEntryEvent<K,V>
- All Implemented Interfaces:
Serializable
,Iterable<javax.cache.event.CacheEntryEvent<? extends K,
,? extends V>> javax.cache.Cache.Entry<K,
V>
final class JCacheEntryEvent<K,V>
extends javax.cache.event.CacheEntryEvent<K,V>
implements Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>>
A cache event dispatched to a listener.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final K
private final @Nullable V
private final @Nullable V
private static final long
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.cache.event.CacheEntryEvent
getEventType, getSource
Methods inherited from class java.util.EventObject
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
key
-
hasOldValue
private final boolean hasOldValue -
oldValue
-
newValue
-
-
Constructor Details
-
JCacheEntryEvent
-
-
Method Details
-
getKey
-
getValue
-
getOldValue
-
isOldValueAvailable
public boolean isOldValueAvailable() -
unwrap
-
iterator
-