public static enum Status.State extends Enum<Status.State> implements StringEnum
Enum Constant and Description |
---|
ERROR
Error state.
|
FAILURE
Failure state.
|
PENDING
Pending state.
|
SUCCESS
Success state.
|
Modifier and Type | Method and Description |
---|---|
static Status.State |
forValue(String ident)
Get enum value from identifier string.
|
String |
identifier()
The string that this enum value represents.
|
static Status.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status.State PENDING
public static final Status.State SUCCESS
public static final Status.State ERROR
public static final Status.State FAILURE
public static Status.State[] values()
for (Status.State c : Status.State.values()) System.out.println(c);
public static Status.State 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 String identifier()
StringEnum
identifier
in interface StringEnum
public static Status.State forValue(String ident)
ident
- Commit status state stringCopyright © 2012–2018 jcabi.com. All rights reserved.