Interface ValidationResult


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

    Modifier and Type
    Method
    Description
    The validation error that have been found.
    default boolean
    Returns true if there is a validation error, false otherwise.
    default boolean
    Returns true if there is no validation error, false otherwise.
  • Method Details

    • 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.