The predicate that determines whether or not validation is successful.
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 resulting failure for nulls. Defaults to com.wix.accord.Validator.nullFailure.
Adapts this validator to a type U
.
Adapts this validator to a type U
. Each application of the new validator applies the the specified
extractor function, and validates the resulting T
via this validator. This enables explicit validator
composition, which is especially useful for defining new, complex combinators. At the validator definition
site, it is recommended to use the valid
operation provided by the DSL instead.
Important note: the specified extractor function must be able to safely handle nulls!
The target type of the adaption.
An extractor function from U => T
.
An adapted validator over type U
.
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.
An extension to com.wix.accord.BaseValidator that transparently fails on nulls.
The object type this validator operates on.