Module is.codion.common.model
Package is.codion.common.model.condition
Interface ConditionModel.Builder<T>
- Enclosing interface:
ConditionModel<T>
public static interface ConditionModel.Builder<T>
Builds a
ConditionModel instance.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionautoEnable(boolean autoEnable) Default true.build()caseSensitive(boolean caseSensitive) dateTimePattern(@Nullable String dateTimePattern) operands(ConditionModel.Operands<T> operands)
-
Method Details
-
operators
- Parameters:
operators- the conditional operators available to this condition model- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in case operators don't contain the selected operator- See Also:
-
operator
- Parameters:
operator- the initial operator- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in case the model operators don't contain the given operator- See Also:
-
operands
- Parameters:
operands- provides the operands- Returns:
- this builder instance
-
format
- Parameters:
format- the format to use when presenting the values, numbers for example- Returns:
- this builder instance
-
dateTimePattern
- Parameters:
dateTimePattern- the date/time format pattern to use in case of a date/time value- Returns:
- this builder instance
-
caseSensitive
- Parameters:
caseSensitive- true if the model should be case-sensitive- Returns:
- this builder instance
-
autoEnable
Default true.- Parameters:
autoEnable- true if the model should auto-enable- Returns:
- this builder instance
-
build
ConditionModel<T> build()- Returns:
- a new
ConditionModelinstance based on this builder
-