public class IsIn<T> extends AbstractListValueCondition<T>
emptyCallback, values
Modifier | Constructor and Description |
---|---|
protected |
IsIn(Collection<T> values) |
protected |
IsIn(Collection<T> values,
Callback emptyCallback) |
Modifier and Type | Method and Description |
---|---|
static <T> IsIn<T> |
empty() |
IsIn<T> |
filter(Predicate<? super T> predicate)
If renderable, apply the predicate to each value in the list and return a new condition with the filtered values.
|
<R> IsIn<R> |
map(Function<? super T,? extends R> mapper)
If renderable, apply the mapping to each value in the list return a new condition with the mapped values.
|
static <T> IsIn<T> |
of(Collection<T> values) |
static <T> IsIn<T> |
of(T... values) |
String |
renderCondition(String columnName,
Stream<String> placeholders) |
IsIn<T> |
then(UnaryOperator<Stream<T>> valueStreamTransformer)
Deprecated.
replaced by
map(Function) and filter(Predicate) |
IsIn<T> |
withListEmptyCallback(Callback callback) |
accept, filterSupport, mapSupport, mapValues, renderingSkipped, shouldRender
protected IsIn(Collection<T> values)
protected IsIn(Collection<T> values, Callback emptyCallback)
public static <T> IsIn<T> empty()
public String renderCondition(String columnName, Stream<String> placeholders)
renderCondition
in class AbstractListValueCondition<T>
public IsIn<T> withListEmptyCallback(Callback callback)
withListEmptyCallback
in class AbstractListValueCondition<T>
@Deprecated public IsIn<T> then(UnaryOperator<Stream<T>> valueStreamTransformer)
map(Function)
and filter(Predicate)
valueStreamTransformer
- a UnaryOperator that will transform the value stream before
the values are placed in the parameter mappublic IsIn<T> filter(Predicate<? super T> predicate)
AbstractListValueCondition
filter
in class AbstractListValueCondition<T>
predicate
- predicate applied to the values, if renderablepublic <R> IsIn<R> map(Function<? super T,? extends R> mapper)
R
- type of the new conditionmapper
- a mapping function to apply to the values, if renderable@SafeVarargs public static <T> IsIn<T> of(T... values)
public static <T> IsIn<T> of(Collection<T> values)
Copyright © 2016–2021 MyBatis.org. All rights reserved.