Package-level declarations
Properties
Whether this is Input.Empty
Whether the actual string of this Input is blank
Whether this is Input.Invalid
Whether this is Input.Valid
Whether this Input is valid or empty
Functions
A function that evaluates this lambda, and if it returns false, returns the result of error wrapped in a sequence. Shorthand for an if statement and a sequence build
Create an Input.Empty from this string as a default.
Fold this list of ValidationErrors to an Input value. Use after running validation on a string.
Transform these ValidationErrors into an Input value based on whether there are any errors If no errors, returns Input.Valid or Input.Empty
Creates a new Input from this string. Whether this will be an Input.Empty or Input.Valid depends on whether the value is a blank string.
Runs all validations on a given sequence of rules.
Applies an additional Rules.Equals to this input, then appends the result of the validation to other validation errors present, if any. Allows to create an Input that must always match some other one Don't forget to run the validation on both the dependent and the original inputs when any of them changes.
Returns Input.value if it is valid, otherwise an empty string
Returns Input.value if it is valid, otherwise null
Validate this string with the given form.
Returns null if this Input is not valid, otherwise returns Input.value