Package org.infinispan.filter
Class CompositeKeyValueFilter<K,V>
- java.lang.Object
-
- org.infinispan.filter.CompositeKeyValueFilter<K,V>
-
- All Implemented Interfaces:
KeyValueFilter<K,V>
public class CompositeKeyValueFilter<K,V> extends Object implements KeyValueFilter<K,V>
Allows AND-composing several key/value filters.- Since:
- 7.0
- Author:
- wburns
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositeKeyValueFilter.Externalizer
-
Constructor Summary
Constructors Constructor Description CompositeKeyValueFilter(KeyValueFilter<? super K,? super V>... filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(K key, V value, Metadata metadata)
protected void
injectDependencies(org.infinispan.factories.ComponentRegistry cr)
-
Methods inherited from interface org.infinispan.filter.KeyValueFilter
format
-
-
-
-
Constructor Detail
-
CompositeKeyValueFilter
public CompositeKeyValueFilter(KeyValueFilter<? super K,? super V>... filters)
-
-
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(org.infinispan.factories.ComponentRegistry cr)
-
-