Enum Class ValidatorResult

java.lang.Object
java.lang.Enum<ValidatorResult>
com.io7m.jequality.validator.ValidatorResult
All Implemented Interfaces:
Serializable, Comparable<ValidatorResult>, Constable

public enum ValidatorResult extends Enum<ValidatorResult>
The result of validation.
  • Enum Constant Details

    • VALIDATION_ERROR_INCONSISTENT_HASHCODE

      public static final ValidatorResult VALIDATION_ERROR_INCONSISTENT_HASHCODE
      Validation failed; hashCode checking was requested, but the hashCode method was not defined in the same class as equals.
    • VALIDATION_ERROR_WANTED_ANNOTATIONS

      public static final ValidatorResult VALIDATION_ERROR_WANTED_ANNOTATIONS
      Validation failed; annotations were required but none were included.
    • VALIDATION_ERROR_WANTED_REFERENCE_EQUALITY

      public static final ValidatorResult VALIDATION_ERROR_WANTED_REFERENCE_EQUALITY
      Validation failed; the class specified reference equality but actually overrode equals.
    • VALIDATION_ERROR_WANTED_STRUCTURAL_EQUALITY

      public static final ValidatorResult VALIDATION_ERROR_WANTED_STRUCTURAL_EQUALITY
      Validation failed; the class specified structural equality but failed to override equals.
    • VALIDATION_OK

      public static final ValidatorResult VALIDATION_OK
      Validation succeeded.
  • Method Details

    • values

      public static ValidatorResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ValidatorResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null