Package com.io7m.jequality.validator
Enum Class ValidatorResult
- All Implemented Interfaces:
Serializable
,Comparable<ValidatorResult>
,Constable
The result of validation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionValidation failed;hashCode
checking was requested, but thehashCode
method was not defined in the same class asequals
.Validation failed; annotations were required but none were included.Validation failed; the class specified reference equality but actually overrodeequals
.Validation failed; the class specified structural equality but failed to overrideequals
.Validation succeeded. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatorResult
Returns the enum constant of this class with the specified name.static ValidatorResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALIDATION_ERROR_INCONSISTENT_HASHCODE
Validation failed;hashCode
checking was requested, but thehashCode
method was not defined in the same class asequals
. -
VALIDATION_ERROR_WANTED_ANNOTATIONS
Validation failed; annotations were required but none were included. -
VALIDATION_ERROR_WANTED_REFERENCE_EQUALITY
Validation failed; the class specified reference equality but actually overrodeequals
. -
VALIDATION_ERROR_WANTED_STRUCTURAL_EQUALITY
Validation failed; the class specified structural equality but failed to overrideequals
. -
VALIDATION_OK
Validation succeeded.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-