Class IsEqualToWhenPresent<T>
java.lang.Object
org.mybatis.dynamic.sql.AbstractSingleValueCondition<T>
org.mybatis.dynamic.sql.where.condition.IsEqualToWhenPresent<T>
- All Implemented Interfaces:
AbstractSingleValueCondition.Filterable<T>, AbstractSingleValueCondition.Mappable<T>, RenderableCondition<T>
public class IsEqualToWhenPresent<T>
extends AbstractSingleValueCondition<T>
implements AbstractSingleValueCondition.Filterable<T>, AbstractSingleValueCondition.Mappable<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSingleValueCondition
AbstractSingleValueCondition.Filterable<T>, AbstractSingleValueCondition.Mappable<T> -
Field Summary
Fields inherited from class AbstractSingleValueCondition
value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> IsEqualToWhenPresent<T> empty()If renderable and the value matches the predicate, returns this condition.<R> IsEqualToWhenPresent<R> If renderable, apply the mapping to the value and return a new condition with the new value.static <T> IsEqualToWhenPresent<T> of(@Nullable T value) operator()Methods inherited from class AbstractSingleValueCondition
filterSupport, mapSupport, renderCondition, valueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RenderableCondition
isEmpty, renderingSkipped, renderLeftColumn, shouldRender
-
Constructor Details
-
IsEqualToWhenPresent
-
-
Method Details
-
empty
-
operator
- Specified by:
operatorin classAbstractSingleValueCondition<T>
-
of
-
filter
Description copied from interface:AbstractSingleValueCondition.FilterableIf renderable and the value matches the predicate, returns this condition. Else returns a condition that will not render.- Specified by:
filterin interfaceAbstractSingleValueCondition.Filterable<T>- Parameters:
predicate- predicate applied to the value, if renderable- Returns:
- this condition if renderable and the value matches the predicate, otherwise a condition that will not render.
-
map
Description copied from interface:AbstractSingleValueCondition.MappableIf renderable, apply the mapping to the value and return a new condition with the new value. Else return a condition that will not render (this).- Specified by:
mapin interfaceAbstractSingleValueCondition.Mappable<T>- Type Parameters:
R- type of the new condition- Parameters:
mapper- a mapping function to apply to the value, if renderable- Returns:
- a new condition with the result of applying the mapper to the value of this condition, if renderable, otherwise a condition that will not render.
-