public abstract static class Constraints.ValidatorWithPayload<T> extends Object
Constructor and Description |
---|
ValidatorWithPayload() |
Modifier and Type | Method and Description |
---|---|
abstract F.Tuple<String,Object[]> |
getErrorMessageKey() |
abstract boolean |
isValid(T object,
Constraints.ValidationPayload payload) |
boolean |
isValid(T object,
javax.validation.ConstraintValidatorContext constraintContext) |
public abstract boolean isValid(T object, Constraints.ValidationPayload payload)
object
- the value to test.payload
- the payload providing validation context information.true
if this value is valid.public boolean isValid(T object, javax.validation.ConstraintValidatorContext constraintContext)
object
- the object to checkconstraintContext
- The JSR-303 validation context.true
if this value is valid for the given constraint.