Interface IMultiConditionBuilder<This extends IMultiConditionBuilder<This>>
-
- Type Parameters:
This
- The type of the builder.
- All Known Subinterfaces:
IMultipleConditionBuilder
public interface IMultiConditionBuilder<This extends IMultiConditionBuilder<This>>
Contract for builders that allow configuring multiple conditions.- Since:
- 8.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description This
combinationType(EMultipleConditionCombinationType type)
Sets the combination type to be used to combine all individual conditions.default This
conditionAnd(ISingleConditionProducer... conditions)
Combines all individual conditions with a logical OR.default This
conditionCustom(String expression, ISingleConditionProducer... conditions)
Combines all individual conditions with a custom boolean expression.default This
conditionOr(ISingleConditionProducer... conditions)
Combines all individual conditions with a logical AND.This
conditions(ISingleConditionProducer... conditions)
Sets the individual conditions to the list of conditions.This
conditions(Iterable<SingleCondition> conditions)
Sets the individual conditions to the list of conditions.This
customCombinationExpression(String expression)
Sets the custom boolean expression to use to combine all individual conditions.This
self()
Returns this builder.
-
-
-
Method Detail
-
combinationType
This combinationType(EMultipleConditionCombinationType type)
Sets the combination type to be used to combine all individual conditions. Prefer usingconditionAnd(ISingleConditionProducer...)
,conditionOr(ISingleConditionProducer...)
, orconditionCustom(String, ISingleConditionProducer...)
.- Parameters:
type
- The combination type.- Returns:
- This builder for chaining method calls.
-
conditionAnd
default This conditionAnd(ISingleConditionProducer... conditions)
Combines all individual conditions with a logical OR.- Parameters:
conditions
- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditionCustom
default This conditionCustom(String expression, ISingleConditionProducer... conditions)
Combines all individual conditions with a custom boolean expression.- Parameters:
expression
- The custom boolean expression.conditions
- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditionOr
default This conditionOr(ISingleConditionProducer... conditions)
Combines all individual conditions with a logical AND.- Parameters:
conditions
- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditions
This conditions(ISingleConditionProducer... conditions)
Sets the individual conditions to the list of conditions. Prefer usingconditionAnd(ISingleConditionProducer...)
,conditionOr(ISingleConditionProducer...)
, orconditionCustom(String, ISingleConditionProducer...)
.- Parameters:
conditions
- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditions
This conditions(Iterable<SingleCondition> conditions)
Sets the individual conditions to the list of conditions. Prefer usingconditionAnd(ISingleConditionProducer...)
,conditionOr(ISingleConditionProducer...)
, orconditionCustom(String, ISingleConditionProducer...)
.- Parameters:
conditions
- The conditions to add.- Returns:
- This builder for chaining method calls.
-
customCombinationExpression
This customCombinationExpression(String expression)
Sets the custom boolean expression to use to combine all individual conditions. Prefer usingconditionAnd(ISingleConditionProducer...)
,conditionOr(ISingleConditionProducer...)
, orconditionCustom(String, ISingleConditionProducer...)
.- Parameters:
expression
- The custom boolean expression.- Returns:
- This builder for chaining method calls.
-
self
This self()
Returns this builder.- Returns:
- This builder.
-
-