Companion

Companion object of Constraint.

Properties

Link copied to clipboard

Default ConditionFormatter used for formatting Constraint instances.

Functions

Link copied to clipboard
fun parse(constraintString: String): Constraint

Parses the constraintString as a Constraint and returns the result or throws a ConstraintFormatException if the string is not a valid representation of a constraint.

Link copied to clipboard
fun parseFormat(constraintString: String, parser: ConditionParser): Constraint

Parses the constraintString as a Constraint using the provided parser and returns the result or throws a ConstraintFormatException if the string is not a valid representation of a constraint.