public enum Reason extends Enum<Reason>
| Enum Constant and Description |
|---|
ACCOUNT_NAME_INVALID
Enum value AccountNameInvalid.
|
ALREADY_EXISTS
Enum value AlreadyExists.
|
| Modifier and Type | Method and Description |
|---|---|
static Reason |
fromString(String value)
Parses a serialized value to a Reason instance.
|
String |
toString() |
static Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Reason ACCOUNT_NAME_INVALID
public static final Reason ALREADY_EXISTS
public static Reason[] values()
for (Reason c : Reason.values()) System.out.println(c);
public static Reason 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 static Reason fromString(String value)
value - the serialized value to parse.Copyright © 2019. All rights reserved.