public enum BatteryLevel extends java.lang.Enum<BatteryLevel>
| Enum Constant and Description |
|---|
END
The battery level is empty.
|
FULL
The battery level is full.
|
HALF
The battery level is half.
|
NEAR_END
The battery level is near end.
|
| Modifier and Type | Method and Description |
|---|---|
UINT8 |
value() |
static BatteryLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BatteryLevel |
valueOf(UINT8 value) |
static BatteryLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatteryLevel FULL
public static final BatteryLevel HALF
public static final BatteryLevel NEAR_END
public static final BatteryLevel END
public static BatteryLevel[] values()
for (BatteryLevel c : BatteryLevel.values()) System.out.println(c);
public static BatteryLevel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic UINT8 value()
public static BatteryLevel valueOf(UINT8 value)