public enum BatteryStatusId extends Enum<BatteryStatusId>
| Enum Constant and Description |
|---|
charging |
percentage |
state |
| Modifier and Type | Method and Description |
|---|---|
static BatteryStatusId |
fromValue(int code) |
int |
getCode() |
String |
toString() |
static BatteryStatusId |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatteryStatusId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatteryStatusId percentage
public static final BatteryStatusId charging
public static final BatteryStatusId state
public static BatteryStatusId[] values()
for (BatteryStatusId c : BatteryStatusId.values()) System.out.println(c);
public static BatteryStatusId 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 int getCode()
public String toString()
toString in class Enum<BatteryStatusId>public static BatteryStatusId fromValue(int code)