public static enum BatterySipper.DrainType extends Enum<BatterySipper.DrainType>
Enum Constant and Description |
---|
APP |
BLUETOOTH |
CAMERA |
CELL |
FLASHLIGHT |
IDLE |
OVERCOUNTED |
PHONE |
SCREEN |
UNACCOUNTED |
USER |
WIFI |
Modifier and Type | Method and Description |
---|---|
static BatterySipper.DrainType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatterySipper.DrainType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatterySipper.DrainType IDLE
public static final BatterySipper.DrainType CELL
public static final BatterySipper.DrainType PHONE
public static final BatterySipper.DrainType WIFI
public static final BatterySipper.DrainType BLUETOOTH
public static final BatterySipper.DrainType FLASHLIGHT
public static final BatterySipper.DrainType SCREEN
public static final BatterySipper.DrainType APP
public static final BatterySipper.DrainType USER
public static final BatterySipper.DrainType UNACCOUNTED
public static final BatterySipper.DrainType OVERCOUNTED
public static final BatterySipper.DrainType CAMERA
public static BatterySipper.DrainType[] values()
for (BatterySipper.DrainType c : BatterySipper.DrainType.values()) System.out.println(c);
public static BatterySipper.DrainType 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 null