public enum ValidationError extends java.lang.Enum<ValidationError>
Enum Constant and Description |
---|
BAD_QUANTITY |
REGEX_MISMATCH |
REQUIRED |
Modifier and Type | Method and Description |
---|---|
static ValidationError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValidationError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationError REQUIRED
public static final ValidationError REGEX_MISMATCH
public static final ValidationError BAD_QUANTITY
public static ValidationError[] values()
for (ValidationError c : ValidationError.values()) System.out.println(c);
public static ValidationError 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 null