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.-
Method Summary
Modifier and TypeMethodDescriptionautoEnable
(boolean autoEnable) build()
caseSensitive
(boolean caseSensitive) dateTimePattern
(String dateTimePattern) wildcard
(ConditionModel.Wildcard wildcard)
-
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:
-
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
-
wildcard
- Parameters:
wildcard
- the wildcards to use- Returns:
- this builder instance
-
caseSensitive
- Parameters:
caseSensitive
- true if the model should be case-sensitive- Returns:
- this builder instance
-
autoEnable
- Parameters:
autoEnable
- true if the model should auto-enable- Returns:
- this builder instance
-
build
ConditionModel<T> build()- Returns:
- a new
ConditionModel
instance based on this builder
-