public abstract class AbstractSingleValueCondition<T> extends Object implements VisitableCondition<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractSingleValueCondition(T value) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(ConditionVisitor<T,R> visitor) |
abstract AbstractSingleValueCondition<T> |
filter(Predicate<? super T> predicate)
If renderable and the value matches the predicate, returns this condition.
|
protected <S extends AbstractSingleValueCondition<T>> |
filterSupport(Predicate<? super T> predicate,
Supplier<S> emptySupplier,
S self) |
protected <R,S extends AbstractSingleValueCondition<R>> |
mapSupport(Function<? super T,? extends R> mapper,
Function<R,S> constructor,
Supplier<S> emptySupplier) |
abstract String |
renderCondition(String columnName,
String placeholder) |
T |
value() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderingSkipped, shouldRender
protected final T value
protected AbstractSingleValueCondition(T value)
public T value()
public <R> R accept(ConditionVisitor<T,R> visitor)
accept
in interface VisitableCondition<T>
protected <S extends AbstractSingleValueCondition<T>> S filterSupport(Predicate<? super T> predicate, Supplier<S> emptySupplier, S self)
protected <R,S extends AbstractSingleValueCondition<R>> S mapSupport(Function<? super T,? extends R> mapper, Function<R,S> constructor, Supplier<S> emptySupplier)
public abstract AbstractSingleValueCondition<T> filter(Predicate<? super T> predicate)
predicate
- predicate applied to the value, if renderableCopyright © 2016–2021 MyBatis.org. All rights reserved.