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 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.
-
-
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)
-
-
-
Method Detail
-
evaluate
public boolean evaluate(javax.cache.event.CacheEntryEvent<? extends K,? extends V> event)
-
isCompatible
private boolean isCompatible(javax.cache.event.CacheEntryEvent<? extends K,? extends V> event)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-