Class EntryEventWithOldValue<K,V>
- java.lang.Object
-
- java.util.EventObject
-
- javax.cache.event.CacheEntryEvent<K,V>
-
- org.cache2k.jcache.provider.event.EntryEvent<K,V>
-
- org.cache2k.jcache.provider.event.EntryEventWithOldValue<K,V>
-
- All Implemented Interfaces:
Serializable
,Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>>
,javax.cache.Cache.Entry<K,V>
public class EntryEventWithOldValue<K,V> extends EntryEvent<K,V>
Entry event with original value for update events.- Author:
- Jens Wilke
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description EntryEventWithOldValue(javax.cache.Cache source, javax.cache.event.EventType eventType, K key, V value, V oldValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getOldValue()
boolean
isOldValueAvailable()
-
Methods inherited from class org.cache2k.jcache.provider.event.EntryEvent
getKey, getValue, iterator, unwrap
-
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
-
-
-
-
Method Detail
-
getOldValue
public V getOldValue()
- Overrides:
getOldValue
in classEntryEvent<K,V>
-
isOldValueAvailable
public boolean isOldValueAvailable()
- Overrides:
isOldValueAvailable
in classEntryEvent<K,V>
-
-