Class Constraints.ValidatorWithPayload<T>

    • Constructor Detail

      • ValidatorWithPayload

        public ValidatorWithPayload()
    • Method Detail

      • isValid

        public abstract boolean isValid​(T object,
                                        Constraints.ValidationPayload payload)
        Parameters:
        object - the value to test.
        payload - the payload providing validation context information.
        Returns:
        true if this value is valid.
      • isValid

        public boolean isValid​(T object,
                               javax.validation.ConstraintValidatorContext constraintContext)
        Parameters:
        object - the object to check
        constraintContext - The JSR-303 validation context.
        Returns:
        true if this value is valid for the given constraint.