Class EntryEvent<K,​V>

  • All Implemented Interfaces:
    Serializable, Iterable<javax.cache.event.CacheEntryEvent<? extends K,​? extends V>>, javax.cache.Cache.Entry<K,​V>
    Direct Known Subclasses:
    EntryEventWithOldValue

    public class EntryEvent<K,​V>
    extends javax.cache.event.CacheEntryEvent<K,​V>
    implements Iterable<javax.cache.event.CacheEntryEvent<? extends K,​? extends V>>
    Entry events without original value, for created, expired and removed events.
    Author:
    Jens Wilke
    See Also:
    Serialized Form
    • Constructor Detail

      • EntryEvent

        public EntryEvent​(javax.cache.Cache source,
                          javax.cache.event.EventType eventType,
                          K key,
                          V value)
    • Method Detail

      • getOldValue

        public V getOldValue()
        Specified by:
        getOldValue in class javax.cache.event.CacheEntryEvent<K,​V>
      • isOldValueAvailable

        public boolean isOldValueAvailable()
        Specified by:
        isOldValueAvailable in class javax.cache.event.CacheEntryEvent<K,​V>
      • getKey

        public K getKey()
        Specified by:
        getKey in interface javax.cache.Cache.Entry<K,​V>
      • getValue

        public V getValue()
        Specified by:
        getValue in interface javax.cache.Cache.Entry<K,​V>
        Specified by:
        getValue in class javax.cache.event.CacheEntryEvent<K,​V>
      • unwrap

        public <T> T unwrap​(Class<T> clazz)
        Specified by:
        unwrap in interface javax.cache.Cache.Entry<K,​V>
      • iterator

        public Iterator<javax.cache.event.CacheEntryEvent<? extends K,​? extends V>> iterator()
        Specified by:
        iterator in interface Iterable<K>