public class IsEqualTo<T> extends AbstractSingleValueCondition<T>
value
Modifier and Type | Method and Description |
---|---|
static <T> IsEqualTo<T> |
empty() |
IsEqualTo<T> |
filter(Predicate<? super T> predicate)
If renderable and the value matches the predicate, returns this condition.
|
<R> IsEqualTo<R> |
map(Function<? super T,? extends R> mapper)
If renderable, apply the mapping to the value and return a new condition with the new value.
|
static <T> IsEqualTo<T> |
of(T value) |
String |
renderCondition(String columnName,
String placeholder) |
IsEqualTo<T> |
then(UnaryOperator<T> mapper)
Deprecated.
replaced by
map(Function) |
IsEqualTo<T> |
when(Predicate<T> predicate)
Deprecated.
replaced by
filter(Predicate) |
accept, filterSupport, mapSupport, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderingSkipped, shouldRender
protected IsEqualTo(T value)
public static <T> IsEqualTo<T> empty()
public String renderCondition(String columnName, String placeholder)
renderCondition
in class AbstractSingleValueCondition<T>
public static <T> IsEqualTo<T> of(T value)
@Deprecated public IsEqualTo<T> when(Predicate<T> predicate)
filter(Predicate)
predicate
- predicate applied to the value, if renderable@Deprecated public IsEqualTo<T> then(UnaryOperator<T> mapper)
map(Function)
mapper
- a mapping function to apply to the value, if renderablepublic IsEqualTo<T> filter(Predicate<? super T> predicate)
AbstractSingleValueCondition
filter
in class AbstractSingleValueCondition<T>
predicate
- predicate applied to the value, if renderablepublic <R> IsEqualTo<R> map(Function<? super T,? extends R> mapper)
R
- type of the new conditionmapper
- a mapping function to apply to the value, if renderableCopyright © 2016–2021 MyBatis.org. All rights reserved.