public abstract static class Constraints.ValidatorWithPayload<T>
extends java.lang.Object
Constructor and Description |
---|
ValidatorWithPayload() |
Modifier and Type | Method and Description |
---|---|
abstract F.Tuple<java.lang.String,java.lang.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.public abstract F.Tuple<java.lang.String,java.lang.Object[]> getErrorMessageKey()