Interface ValidationResult


  • public interface ValidationResult
    Captures the result of a validation. Normally created by validators that implement the Validator interface.
    • Method Detail

      • isValid

        default boolean isValid()
        Returns true if there is no validation error, false otherwise.
        Returns:
        true if there is no validation error.
      • isErroneous

        default boolean isErroneous()
        Returns true if there is a validation error, false otherwise.
        Returns:
        true if there is a validation error.
      • getErrorDescription

        @Nullable
        String getErrorDescription()
        The validation error that have been found.
        Returns:
        the error description or null in case the validation was valid.