Class AbstractTwoValueCondition<T>

    • Field Detail

      • value1

        protected final T value1
      • value2

        protected final T value2
    • Constructor Detail

      • AbstractTwoValueCondition

        protected AbstractTwoValueCondition​(T value1,
                                            T value2)
    • Method Detail

      • value1

        public T value1()
      • value2

        public T value2()
      • filter

        public abstract AbstractTwoValueCondition<T> filter​(BiPredicate<? super T,​? super T> predicate)
        If renderable and the values match the predicate, returns this condition. Else returns a condition that will not render.
        Parameters:
        predicate - predicate applied to the values, if renderable
        Returns:
        this condition if renderable and the values match the predicate, otherwise a condition that will not render.
      • filter

        public abstract AbstractTwoValueCondition<T> filter​(Predicate<? super T> predicate)
        If renderable and both values match the predicate, returns this condition. Else returns a condition that will not render. This function implements a short-circuiting test. If the first value does not match the predicate, then the second value will not be tested.
        Parameters:
        predicate - predicate applied to both values, if renderable
        Returns:
        this condition if renderable and the values match the predicate, otherwise a condition that will not render.
      • renderCondition

        public abstract String renderCondition​(String columnName,
                                               String placeholder1,
                                               String placeholder2)