Class NotFilter

  • All Implemented Interfaces:
    Filter, FilterSet

    public class NotFilter
    extends Object
    implements FilterSet
    Not search filter set defined as:
     (!(filter))
     
    • Field Detail

      • HASH_CODE_SEED

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

        private Filter filterComponent
        Component of this filter.
    • Constructor Detail

      • NotFilter

        public NotFilter()
        Default constructor.
      • NotFilter

        public NotFilter​(Filter component)
        Creates a new not filter.
        Parameters:
        component - 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
      • getComponent

        public Filter getComponent()
        Returns the component of this filter.
        Returns:
        filter component
      • 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