Package org.infinispan.filter
Class KeyFilterAsKeyValueFilter<K,V>
- java.lang.Object
-
- org.infinispan.filter.KeyFilterAsKeyValueFilter<K,V>
-
- All Implemented Interfaces:
KeyValueFilter<K,V>
public class KeyFilterAsKeyValueFilter<K,V> extends java.lang.Object implements KeyValueFilter<K,V>
KeyValueFilter that implements it's filtering solely on the use of the provided KeyFilter- Since:
- 7.0
- Author:
- wburns
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyFilterAsKeyValueFilter.Externalizer
-
Constructor Summary
Constructors Constructor Description KeyFilterAsKeyValueFilter(KeyFilter<? super K> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(K key, V value, Metadata metadata)
protected void
injectDependencies(ComponentRegistry cr)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.filter.KeyValueFilter
format
-
-
-
-
Method Detail
-
accept
public boolean accept(K key, V value, Metadata metadata)
- Specified by:
accept
in interfaceKeyValueFilter<K,V>
- Parameters:
key
- key to testvalue
- value to use (could be null for the case of removal)metadata
- metadata- Returns:
- true if the given key is accepted by this filter.
-
injectDependencies
protected void injectDependencies(ComponentRegistry cr)
-
-