public enum BatteryEvent extends java.lang.Enum<BatteryEvent>
| Enum Constant and Description |
|---|
BATTERY_SWAP_EVENT_BEGIN
Batter Swap begin event.
|
BATTERY_SWAP_EVENT_END
Batter Swap end event.
|
BATTERY_SWAP_EVENT_UNKNOWN
Unknown Battery Event from.
|
| Modifier and Type | Method and Description |
|---|---|
static BatteryEvent |
fromInt(int n)
Retrieves the corresponding BatteryEvent value, from a valid integer.
|
int |
toInt()
Converts the BatteryEvent enum to its integer representing value.
|
java.lang.String |
toString() |
static BatteryEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BatteryEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatteryEvent BATTERY_SWAP_EVENT_UNKNOWN
public static final BatteryEvent BATTERY_SWAP_EVENT_BEGIN
public static final BatteryEvent BATTERY_SWAP_EVENT_END
public static BatteryEvent[] values()
for (BatteryEvent c : BatteryEvent.values()) System.out.println(c);
public static BatteryEvent 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 int toInt()
public static BatteryEvent fromInt(int n)
n - intpublic java.lang.String toString()
toString in class java.lang.Enum<BatteryEvent>