Class EventTypeFilter<K,​V>

  • All Implemented Interfaces:
    javax.cache.event.CacheEntryEventFilter<K,​V>

    final class EventTypeFilter<K,​V>
    extends java.lang.Object
    implements javax.cache.event.CacheEntryEventFilter<K,​V>
    A filter that determines if the listener can process the event type before delegating to the decorated filter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.cache.event.CacheEntryEventFilter<? super K,​? super V> filter  
      private javax.cache.event.CacheEntryListener<? super K,​? super V> listener  
    • Constructor Summary

      Constructors 
      Constructor Description
      EventTypeFilter​(javax.cache.event.CacheEntryListener<? super K,​? super V> listener, javax.cache.event.CacheEntryEventFilter<? super K,​? super V> filter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      boolean evaluate​(javax.cache.event.CacheEntryEvent<? extends K,​? extends V> event)  
      int hashCode()  
      private boolean isCompatible​(javax.cache.event.CacheEntryEvent<? extends K,​? extends V> event)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filter

        private final javax.cache.event.CacheEntryEventFilter<? super K,​? super V> filter
      • listener

        private final javax.cache.event.CacheEntryListener<? super K,​? super V> listener
    • Constructor Detail

      • EventTypeFilter

        public EventTypeFilter​(javax.cache.event.CacheEntryListener<? super K,​? super V> listener,
                               javax.cache.event.CacheEntryEventFilter<? super K,​? super V> filter)
    • Method Detail

      • evaluate

        public boolean evaluate​(javax.cache.event.CacheEntryEvent<? extends K,​? extends V> event)
        Specified by:
        evaluate in interface javax.cache.event.CacheEntryEventFilter<K,​V>
      • isCompatible

        private boolean isCompatible​(javax.cache.event.CacheEntryEvent<? extends K,​? extends V> event)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object