Class CompoundFilter<T>

    • Field Detail

      • filter1

        protected final Filter<T> filter1
        The first Filter used to accept the value.
      • filter2

        protected final Filter<T> filter2
        The second Filter used to accept the value.
    • Constructor Detail

      • CompoundFilter

        protected CompoundFilter​(Filter<T> filter1,
                                 Filter<T> filter2)
        Creates a new CompoundFilter that will "accept" any object that is accept by both of the specified wrapped filters.
        Parameters:
        filter1 - The first Filter used to accept the value
        filter2 - The second Filter used to accept the value
    • Method Detail

      • getFilter1

        public Filter<T> getFilter1()
        Returns the left Filter of this compound filter.
        Returns:
        The first Filter
      • getFilter2

        public Filter<T> getFilter2()
        Returns the second Filter of this compound filter.
        Returns:
        The second Filter
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • operatorString

        protected abstract String operatorString()
        Returns a string representation of the filter's operator.
        Returns:
        The string value of the operator