public enum ValidationErrorType extends java.lang.Enum<ValidationErrorType>
| Enum Constant and Description |
|---|
CANNOT_BE_BLANK |
INVALID |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEqualTo(java.lang.String value)
Returns if this matches.
|
static ValidationErrorType |
toEnum(java.lang.String value)
Converts a string to a enum.
|
static ValidationErrorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValidationErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationErrorType INVALID
public static final ValidationErrorType CANNOT_BE_BLANK
public static final ValidationErrorType UNKNOWN
public static ValidationErrorType[] values()
for (ValidationErrorType c : ValidationErrorType.values()) System.out.println(c);
public static ValidationErrorType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isEqualTo(java.lang.String value)
value - the value to test@NotNull public static ValidationErrorType toEnum(@NotNull java.lang.String value)
value - the value to convert