public abstract static class Constraints.Validator<T>
extends java.lang.Object
Constructor and Description |
---|
Constraints.Validator() |
Modifier and Type | Method and Description |
---|---|
abstract F.Tuple<java.lang.String,java.lang.Object[]> |
getErrorMessageKey() |
abstract boolean |
isValid(T object)
Returns
true if this value is valid. |
boolean |
isValid(T object,
ConstraintValidatorContext constraintContext)
Returns
true if this value is valid for the given constraint. |
public abstract boolean isValid(T object)
true
if this value is valid.public boolean isValid(T object, ConstraintValidatorContext constraintContext)
true
if this value is valid for the given constraint.constraintContext
- The JSR-303 validation context.public abstract F.Tuple<java.lang.String,java.lang.Object[]> getErrorMessageKey()