public enum ResultEnum extends Enum<ResultEnum>
| Enum Constant and Description |
|---|
FAIL
Represents fail.
|
IN_PROGRESS
Represents in-progress.
|
SUCCESS
Represents success.
|
| Modifier and Type | Method and Description |
|---|---|
static ResultEnum |
of(int value)
Returns the object of resultEnum for.
|
static ResultEnum |
of(String value)
Returns the object of resultEnum for.
|
int |
resultEnum()
Returns the attribute resultEnum.
|
String |
toString() |
static ResultEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultEnum SUCCESS
public static final ResultEnum IN_PROGRESS
public static final ResultEnum FAIL
public static ResultEnum[] values()
for (ResultEnum c : ResultEnum.values()) System.out.println(c);
public static ResultEnum 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 ResultEnum of(int value)
value - value of resultEnum forpublic static ResultEnum of(String value)
value - value of resultEnum forpublic int resultEnum()
public String toString()
toString in class Enum<ResultEnum>Copyright © 2018. All rights reserved.