Class OrFilter

  • All Implemented Interfaces:
    Filter, FilterSet

    public class OrFilter
    extends Object
    implements FilterSet
    Or 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

      • OrFilter

        public OrFilter()
        Default constructor.
      • OrFilter

        public OrFilter​(Filter... components)
        Creates a new or 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
      • getComponents

        public List<Filter> getComponents()
        Returns the components of this filter.
        filter components
      • 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