public static class Validator.State extends Object
Validator.Relationship, the Validator.Entry must have been defined for these fields already.
You may provide a check for the values of these fields using checkIf(Predicate), which may be chained
onto. If it fails and unless you ask the check to fail with orFail(), the defaults from the entries
defined for these fields will be used for all of them.| Modifier and Type | Method and Description |
|---|---|
Validator.State |
checkIf(Predicate<List<Object>> validation)
Provide the
Predicate that accepts the values that this state is checking. |
void |
orFail()
Fail if this state check fails.
|
public Validator.State checkIf(Predicate<List<Object>> validation)
Predicate that accepts the values that this state is checking.
validations and they will be ANDed on the existing ones.validation - A check for this relationship.public void orFail()
Copyright © 2021. All rights reserved.