Class CompositeKeyFilter<K>

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

    public class CompositeKeyFilter<K>
    extends Object
    implements KeyFilter<K>
    Allows AND-composing several filters.
    Since:
    6.0
    Author:
    Mircea Markus
    • Constructor Detail

      • CompositeKeyFilter

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