Class 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 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 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​(org.infinispan.factories.ComponentRegistry cr)