Class EventTypeFilter<K,V>

java.lang.Object
com.github.benmanes.caffeine.jcache.event.EventTypeFilter<K,V>
All Implemented Interfaces:
javax.cache.event.CacheEntryEventFilter<K,V>

final class EventTypeFilter<K,V> extends 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 final javax.cache.event.CacheEntryEventFilter<? super K,? super V>
     
    private final javax.cache.event.CacheEntryListener<? super K,? super V>
     
  • 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

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    evaluate(javax.cache.event.CacheEntryEvent<? extends K,? extends V> event)
     
    int
     
    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 Details

    • 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 Details

    • EventTypeFilter

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

    • 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object