public abstract class AbstractTwoValueCondition<T> extends Object implements VisitableCondition<T>
| Modifier and Type | Field and Description |
|---|---|
protected Supplier<T> |
valueSupplier1 |
protected Supplier<T> |
valueSupplier2 |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTwoValueCondition(Supplier<T> valueSupplier1,
Supplier<T> valueSupplier2) |
protected |
AbstractTwoValueCondition(Supplier<T> valueSupplier1,
Supplier<T> valueSupplier2,
BiPredicate<T,T> predicate) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(ConditionVisitor<T,R> visitor) |
abstract String |
renderCondition(String columnName,
String placeholder1,
String placeholder2) |
boolean |
shouldRender()
Subclasses can override this to inform the renderer if the condition should not be included
in the rendered SQL.
|
T |
value1() |
T |
value2() |
protected AbstractTwoValueCondition(Supplier<T> valueSupplier1, Supplier<T> valueSupplier2)
public T value1()
public T value2()
public boolean shouldRender()
VisitableConditionshouldRender in interface VisitableCondition<T>public <R> R accept(ConditionVisitor<T,R> visitor)
accept in interface VisitableCondition<T>Copyright © 2016–2019 MyBatis.org. All rights reserved.