public enum ChargeState extends Enum<ChargeState>
| Enum Constant and Description |
|---|
FAILED |
PENDING |
SUCCESSFUL |
| Modifier and Type | Method and Description |
|---|---|
static ChargeState |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static ChargeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChargeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChargeState PENDING
public static final ChargeState FAILED
public static final ChargeState SUCCESSFUL
public static ChargeState[] values()
for (ChargeState c : ChargeState.values()) System.out.println(c);
public static ChargeState 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 getValue()
public String toString()
toString in class Enum<ChargeState>public static ChargeState fromValue(String text)
Copyright © 2022. All rights reserved.