Class KeyFilterAsKeyValueFilter<K,​V>

  • All Implemented Interfaces:
    KeyValueFilter<K,​V>

    public class KeyFilterAsKeyValueFilter<K,​V>
    extends Object
    implements KeyValueFilter<K,​V>
    KeyValueFilter that implements it's filtering solely on the use of the provided KeyFilter
    Since:
    7.0
    Author:
    wburns
    • Constructor Detail

      • KeyFilterAsKeyValueFilter

        public KeyFilterAsKeyValueFilter​(KeyFilter<? super K> filter)
    • 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.