Class KeyValueFilterAsKeyFilter<K>

  • All Implemented Interfaces:
    Predicate<K>, KeyFilter<K>

    public class KeyValueFilterAsKeyFilter<K>
    extends Object
    implements KeyFilter<K>
    This is a KeyFilter that utilizes the given KeyValueFilter 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
    • Constructor Detail

      • KeyValueFilterAsKeyFilter

        public KeyValueFilterAsKeyFilter​(KeyValueFilter<? super K,​?> filter)
    • Method Detail

      • accept

        public boolean accept​(K key)
        Specified by:
        accept in interface KeyFilter<K>
        Parameters:
        key - key to test
        Returns:
        true if the given key is accepted by this filter.