Class IsInCaseInsensitive
- java.lang.Object
-
- org.mybatis.dynamic.sql.AbstractListValueCondition<String>
-
- org.mybatis.dynamic.sql.where.condition.IsInCaseInsensitive
-
- All Implemented Interfaces:
VisitableCondition<String>
public class IsInCaseInsensitive extends AbstractListValueCondition<String>
-
-
Field Summary
-
Fields inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
emptyCallback, values
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IsInCaseInsensitive(Collection<String> values)
protected
IsInCaseInsensitive(Collection<String> values, Callback emptyCallback)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IsInCaseInsensitive
empty()
IsInCaseInsensitive
filter(Predicate<? super String> predicate)
If renderable, apply the predicate to each value in the list and return a new condition with the filtered values.IsInCaseInsensitive
map(UnaryOperator<String> mapper)
If renderable, apply the mapping to each value in the list return a new condition with the mapped values.static IsInCaseInsensitive
of(String... values)
static IsInCaseInsensitive
of(Collection<String> values)
String
renderCondition(String columnName, Stream<String> placeholders)
IsInCaseInsensitive
withListEmptyCallback(Callback callback)
-
Methods inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
accept, filterSupport, mapSupport, mapValues, renderingSkipped, shouldRender
-
-
-
-
Constructor Detail
-
IsInCaseInsensitive
protected IsInCaseInsensitive(Collection<String> values)
-
IsInCaseInsensitive
protected IsInCaseInsensitive(Collection<String> values, Callback emptyCallback)
-
-
Method Detail
-
empty
public static IsInCaseInsensitive empty()
-
renderCondition
public String renderCondition(String columnName, Stream<String> placeholders)
- Specified by:
renderCondition
in classAbstractListValueCondition<String>
-
withListEmptyCallback
public IsInCaseInsensitive withListEmptyCallback(Callback callback)
- Specified by:
withListEmptyCallback
in classAbstractListValueCondition<String>
-
filter
public IsInCaseInsensitive filter(Predicate<? super String> predicate)
Description copied from class:AbstractListValueCondition
If renderable, apply the predicate to each value in the list and return a new condition with the filtered values. Else returns a condition that will not render (this). If all values are filtered out of the value list, then the condition will not render.- Specified by:
filter
in classAbstractListValueCondition<String>
- Parameters:
predicate
- predicate applied to the values, if renderable- Returns:
- a new condition with filtered values if renderable, otherwise a condition that will not render.
-
map
public IsInCaseInsensitive map(UnaryOperator<String> mapper)
If renderable, apply the mapping to each value in the list return a new condition with the mapped values. Else return a condition that will not render (this).- Parameters:
mapper
- a mapping function to apply to the values, if renderable- Returns:
- a new condition with mapped values if renderable, otherwise a condition that will not render.
-
of
public static IsInCaseInsensitive of(String... values)
-
of
public static IsInCaseInsensitive of(Collection<String> values)
-
-