Class IsIn<T>
java.lang.Object
org.mybatis.dynamic.sql.AbstractListValueCondition<T>
org.mybatis.dynamic.sql.where.condition.IsIn<T>
- All Implemented Interfaces:
VisitableCondition<T>
-
Field Summary
Fields inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
values
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> IsIn
<T> empty()
If renderable, apply the predicate to each value in the list and return a new condition with the filtered values.<R> IsIn
<R> 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) operator()
Methods inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
accept, filterSupport, isEmpty, mapSupport, shouldRender, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mybatis.dynamic.sql.VisitableCondition
overrideRenderedLeftColumn, renderingSkipped
-
Constructor Details
-
IsIn
-
-
Method Details
-
empty
-
operator
- Specified by:
operator
in classAbstractListValueCondition<T>
-
filter
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<T>
- 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
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).- Type Parameters:
R
- type of the new condition- 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
-
of
-