Package org.infinispan.filter
Class KeyValueFilterAsKeyFilter<K>
- java.lang.Object
-
- org.infinispan.filter.KeyValueFilterAsKeyFilter<K>
-
- All Implemented Interfaces:
java.util.function.Predicate<K>
,KeyFilter<K>
public class KeyValueFilterAsKeyFilter<K> extends java.lang.Object implements KeyFilter<K>
This is a KeyFilter that utilizes the givenKeyValueFilter
to determine if to filter the key. Note this filter will be passed null for both the value and metadata on every pass.- Since:
- 7.0
- Author:
- wburns
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyValueFilterAsKeyFilter.Externalizer
-
Field Summary
-
Fields inherited from interface org.infinispan.filter.KeyFilter
ACCEPT_ALL_FILTER
-
-
Constructor Summary
Constructors Constructor Description KeyValueFilterAsKeyFilter(KeyValueFilter<? super K,?> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(K key)
protected void
injectDependencies(ComponentRegistry cr)
-
-
-
Constructor Detail
-
KeyValueFilterAsKeyFilter
public KeyValueFilterAsKeyFilter(KeyValueFilter<? super K,?> filter)
-
-
Method Detail
-
accept
public boolean accept(K key)
-
injectDependencies
protected void injectDependencies(ComponentRegistry cr)
-
-