public abstract class AbstractTwoValueCondition<T> extends Object implements VisitableCondition<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractTwoValueCondition(T value1,
T value2) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(ConditionVisitor<T,R> visitor) |
abstract AbstractTwoValueCondition<T> |
filter(BiPredicate<? super T,? super T> predicate)
If renderable and the values match the predicate, returns this condition.
|
abstract AbstractTwoValueCondition<T> |
filter(Predicate<? super T> predicate)
If renderable and both values match the predicate, returns this condition.
|
protected <S extends AbstractTwoValueCondition<T>> |
filterSupport(BiPredicate<? super T,? super T> predicate,
Supplier<S> emptySupplier,
S self) |
protected <S extends AbstractTwoValueCondition<T>> |
filterSupport(Predicate<? super T> predicate,
Supplier<S> emptySupplier,
S self) |
protected <R,S extends AbstractTwoValueCondition<R>> |
mapSupport(Function<? super T,? extends R> mapper1,
Function<? super T,? extends R> mapper2,
BiFunction<R,R,S> constructor,
Supplier<S> emptySupplier) |
abstract String |
renderCondition(String columnName,
String placeholder1,
String placeholder2) |
T |
value1() |
T |
value2() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderingSkipped, shouldRender
public T value1()
public T value2()
public <R> R accept(ConditionVisitor<T,R> visitor)
accept
in interface VisitableCondition<T>
protected <S extends AbstractTwoValueCondition<T>> S filterSupport(BiPredicate<? super T,? super T> predicate, Supplier<S> emptySupplier, S self)
protected <S extends AbstractTwoValueCondition<T>> S filterSupport(Predicate<? super T> predicate, Supplier<S> emptySupplier, S self)
protected <R,S extends AbstractTwoValueCondition<R>> S mapSupport(Function<? super T,? extends R> mapper1, Function<? super T,? extends R> mapper2, BiFunction<R,R,S> constructor, Supplier<S> emptySupplier)
public abstract AbstractTwoValueCondition<T> filter(BiPredicate<? super T,? super T> predicate)
predicate
- predicate applied to the values, if renderablepublic abstract AbstractTwoValueCondition<T> filter(Predicate<? super T> predicate)
predicate
- predicate applied to both values, if renderableCopyright © 2016–2021 MyBatis.org. All rights reserved.