holds
fun <R : ValidationRule<T>> R.holds(message: (T?) -> String = { "Was supposed to hold for '$it' but did not" }, predicate: (T?) -> Boolean): R(source)
Validate that predicate evaluates to true.
Return
The original rule on which this method has been invoked.
Parameters
message
The error message to display should predicate not be valid.
predicate
The predicate which should be validated.