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

    • CompositeKeyValueFilter

      public CompositeKeyValueFilter(KeyValueFilter<? super K,? super V>... filters)
  • Method Details

    • accept

      public boolean accept(K key, V value, Metadata metadata)
      Specified by:
      accept in interface KeyValueFilter<K,V>
      Parameters:
      key - key to test
      value - 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)