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:
java.io.Serializable
,java.lang.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 java.lang.Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>>
A cache event dispatched to a listener.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
hasOldValue
private K
key
private @Nullable V
newValue
private @Nullable V
oldValue
private static long
serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getKey()
@Nullable V
getOldValue()
@Nullable V
getValue()
boolean
isOldValueAvailable()
java.util.Iterator<javax.cache.event.CacheEntryEvent<? extends K,? extends V>>
iterator()
<T> T
unwrap(java.lang.Class<T> clazz)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
key
private final K key
-
hasOldValue
private final boolean hasOldValue
-
oldValue
private final @Nullable V oldValue
-
newValue
private final @Nullable V newValue
-
-