Class AndFilter

  • All Implemented Interfaces:
    Filter, FilterSet

    public class AndFilter
    extends Object
    implements FilterSet
    And search filter set defined as:
    • Field Detail


        private static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
      • filterComponents

        private final List<Filter> filterComponents
        Components of this filter.
    • Constructor Detail

      • AndFilter

        public AndFilter()
        Default constructor.
      • AndFilter

        public AndFilter​(Filter... components)
        Creates a new and filter.
        components - of this filter
    • Method Detail

      • getType

        public Filter.Type getType()
        Description copied from interface: FilterSet
        Returns the type of filter set.
        Specified by:
        getType in interface FilterSet
        type of filter set
      • add

        public void add​(Filter component)
        Description copied from interface: FilterSet
        Adds a search filter to this set.
        Specified by:
        add in interface FilterSet
        component - to add
      • getEncoder

        public DEREncoder getEncoder()
        Description copied from interface: Filter
        Returns the encoder for this filter.
        Specified by:
        getEncoder in interface Filter
        DER encoder
      • hashCode

        public int hashCode()
        hashCode in class Object