Class AndFilter

  • All Implemented Interfaces:
    Filter, FilterSet

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

      • HASH_CODE_SEED

        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.
        Parameters:
        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
        Returns:
        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
        Parameters:
        component - to add
      • getComponents

        public List<Filter> getComponents()
        Returns the components of this filter.
        Returns:
        filter components
      • getEncoder

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

        public int hashCode()
        Overrides:
        hashCode in class Object