State.Chain
public enum State.Chain
Summary
Enum Values |
|
|---|---|
PACKED |
|
SPREAD |
|
SPREAD_INSIDE |
Public methods |
|
|---|---|
static State.Chain |
getChainByString(String str)Get the actual int value with a String |
static int |
getValueByString(String str)Get the Enum value with a String |
static State.Chain |
Returns the enum constant of this type with the specified name. |
static State.Chain[] |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Enum Values
PACKED
State.Chain State.Chain.PACKED
SPREAD
State.Chain State.Chain.SPREAD
SPREAD_INSIDE
State.Chain State.Chain.SPREAD_INSIDE
Public fields
Public methods
getChainByString
public static State.Chain getChainByString(String str)
Get the actual int value with a String
| Parameters | |
|---|---|
String str |
a String representation of a Enum value |
| Returns | |
|---|---|
State.Chain |
an actual int value |
getValueByString
public static int getValueByString(String str)
Get the Enum value with a String
| Parameters | |
|---|---|
String str |
a String representation of a Enum value |
| Returns | |
|---|---|
int |
a Enum value |
valueOf
public static State.Chain valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
| Returns | |
|---|---|
State.Chain |
the enum constant with the specified name |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if this enum type has no constant with the specified name |
values
public static State.Chain[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
| Returns | |
|---|---|
State.Chain[] |
an array containing the constants of this enum type, in the order they're declared |