The lower bound against which values are validated.
The lower bound against which values are validated.
A prefix for violation messages; for example, specifying "got"
will result in a
constraint violation like "got 10, expected between 5 and 7".
Evidence that T
is ordered (i.e. a scala.math.Ordering of T
is available).
Returns a new validator based on the provided bounds and prefix, but which treats the upper bound as exclusive.
Returns a new validator based on the provided bounds and prefix, but which treats the upper bound as exclusive. The resulting constraint violation will consequently look similar to "got 10, expected between 5 and 7 (exclusively)".
A generator function for producing com.wix.accord.Failures if validation fails.
A generator function for producing com.wix.accord.Failures if validation fails. The helper methods in com.wix.accord.ViolationBuilder can be used to simplify this task.
The predicate that determines whether or not validation is successful.
The predicate that determines whether or not validation is successful.
A validator that succeeds only for values between the specified bounds (both bounds are inclusive). The com.wix.accord.combinators.OrderingCombinators.Between.exclusive method can be used to derive a validator that excludes the upper bound.
The object type this validator operates on.