public enum ValidationErrorType extends Enum<ValidationErrorType>
| Enum Constant and Description |
|---|
CANNOT_BE_BLANK |
INVALID |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEqualTo(String value)
Returns if this matches.
|
static ValidationErrorType |
toEnum(String value)
Converts a string to a enum.
|
static ValidationErrorType |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isEqualTo(String value)
value - the value to test@NotNull public static ValidationErrorType toEnum(@NotNull String value)
value - the value to convert