Interface ConditionModel.SetCondition<T>
- Type Parameters:
T- the value type
- Enclosing interface:
ConditionModel<T>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbetweenExclusive(@Nullable T lower, @Nullable T upper) booleanSets the operator toOperator.EQUALand the operand tovalue.booleangreaterThan(@Nullable T value) Sets the operator toOperator.GREATER_THANand the operand tovalue.booleangreaterThanOrEqualTo(@Nullable T value) Sets the operator toOperator.GREATER_THAN_OR_EQUALand the operand tovalue.booleanin(Collection<T> values) Sets the operator toOperator.INand the operands tovalues.booleanSets the operator toOperator.INand the operands tovalues.booleanSets the operator toOperator.NOT_EQUAL, the operand tonulland enables this condition.booleanisNull()Sets the operator toOperator.EQUAL, the operand tonulland enables this condition.booleanSets the operator toOperator.LESS_THANand the operand tovalue.booleanlessThanOrEqualTo(@Nullable T value) Sets the operator toOperator.LESS_THAN_OR_EQUALand the operand tovalue.booleannotBetween(@Nullable T lower, @Nullable T upper) booleannotBetweenExclusive(@Nullable T lower, @Nullable T upper) booleannotEqualTo(@Nullable T value) Sets the operator toOperator.NOT_EQUALand the operand tovalue.booleannotIn(Collection<T> values) Sets the operator toOperator.NOT_INand the operands tovalues.booleanSets the operator toOperator.INand the operands tovalues.
-
Method Details
-
isNull
boolean isNull()Sets the operator to
Operator.EQUAL, the operand tonulland enables this condition.- Returns:
- true if the condition state changed
-
isNotNull
boolean isNotNull()Sets the operator to
Operator.NOT_EQUAL, the operand tonulland enables this condition.- Returns:
- true if the condition state changed
-
equalTo
Sets the operator to
Operator.EQUALand the operand tovalue.Enables the condition if
valueis non-null, otherwise disables it.- Parameters:
value- the operand- Returns:
- true if the condition state changed
-
notEqualTo
Sets the operator to
Operator.NOT_EQUALand the operand tovalue.Enables the condition if
valueis non-null, otherwise disables it.- Parameters:
value- the operand- Returns:
- true if the condition state changed
-
greaterThan
Sets the operator to
Operator.GREATER_THANand the operand tovalue.Enables the condition if
valueis non-null, otherwise disables it.- Parameters:
value- the operand- Returns:
- true if the condition state changed
-
greaterThanOrEqualTo
Sets the operator to
Operator.GREATER_THAN_OR_EQUALand the operand tovalue.Enables the condition if
valueis non-null, otherwise disables it.- Parameters:
value- the operand- Returns:
- true if the condition state changed
-
lessThan
Sets the operator to
Operator.LESS_THANand the operand tovalue.Enables the condition if
valueis non-null, otherwise disables it.- Parameters:
value- the operand- Returns:
- true if the condition state changed
-
lessThanOrEqualTo
Sets the operator to
Operator.LESS_THAN_OR_EQUALand the operand tovalue.Enables the condition if
valueis non-null, otherwise disables it.- Parameters:
value- the operand- Returns:
- true if the condition state changed
-
in
Sets the operator to
Operator.INand the operands tovalues.Enables the condition if
valuesis not empty, otherwise disables it.- Parameters:
values- the operands- Returns:
- true if the condition state changed
-
in
Sets the operator to
Operator.INand the operands tovalues.Enables the condition if
valuesis not empty, otherwise disables it.- Parameters:
values- the operands- Returns:
- true if the condition state changed
-
notIn
Sets the operator to
Operator.INand the operands tovalues.Enables the condition if
valuesis not empty, otherwise disables it.- Parameters:
values- the operands- Returns:
- true if the condition state changed
-
notIn
Sets the operator to
Operator.NOT_INand the operands tovalues.Enables the condition if
valuesis not empty, otherwise disables it.- Parameters:
values- the operands- Returns:
- true if the condition state changed
-
betweenExclusive
Sets the operator to
Operator.BETWEEN_EXCLUSIVEand the operands tolowerandupper.Enables the condition if both operands are non-null, otherwise disables it.
- Parameters:
lower- the lower boundupper- the upper bound- Returns:
- true if the condition state changed
-
notBetweenExclusive
Sets the operator to
Operator.NOT_BETWEEN_EXCLUSIVEand the operands tolowerandupper.Enables the condition if both operands are non-null, otherwise disables it.
- Parameters:
lower- the lower boundupper- the upper bound- Returns:
- true if the condition state changed
-
between
Sets the operator to
Operator.BETWEENand the operands tolowerandupper.Enables the condition if both operands are non-null, otherwise disables it.
- Parameters:
lower- the lower boundupper- the upper bound- Returns:
- true if the condition state changed
-
notBetween
Sets the operator to
Operator.NOT_BETWEENand the operands tolowerandupper.Enables the condition if both operands are non-null, otherwise disables it.
- Parameters:
lower- the lower boundupper- the upper bound- Returns:
- true if the condition state changed
-