Class AbstractTwoValueCondition<T>

    • Field Detail

      • valueSupplier1

        protected final Supplier<T> valueSupplier1
      • valueSupplier2

        protected final Supplier<T> valueSupplier2
    • Constructor Detail

      • AbstractTwoValueCondition

        protected AbstractTwoValueCondition​(Supplier<T> valueSupplier1,
                                            Supplier<T> valueSupplier2)
      • AbstractTwoValueCondition

        protected AbstractTwoValueCondition​(Supplier<T> valueSupplier1,
                                            Supplier<T> valueSupplier2,
                                            BiPredicate<T,​T> predicate)
    • Method Detail

      • value1

        public T value1()
      • value2

        public T value2()
      • shouldRender

        public boolean shouldRender()
        Description copied from interface: VisitableCondition
        Subclasses can override this to inform the renderer if the condition should not be included in the rendered SQL. For example, IsEqualWhenPresent will not render if the value is null.
        Specified by:
        shouldRender in interface VisitableCondition<T>
        Returns:
        true if the condition should render.
      • renderCondition

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