public enum PowerModeLevel extends java.lang.Enum<PowerModeLevel>
| Modifier and Type | Method and Description |
|---|---|
int |
dutyCycle()
Get the duty cycle value.
|
int |
idleTime()
Get the idle time value.
|
int |
inventoryTime()
Get the inventory time value.
|
int |
maxPercent()
Get the max percent value.
|
static java.lang.String[] |
names()
Returns an array containing the name of this enum type.
|
int |
percent()
Get the battery percent value.
|
int |
value()
Get the enum value
|
static PowerModeLevel |
valueOf(int code)
Returns the enum constant of this type with the specified code.
|
static PowerModeLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerModeLevel |
valueOfName(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerModeLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerModeLevel Normal
public static final PowerModeLevel High
public static final PowerModeLevel Medium
public static final PowerModeLevel Low
public static final PowerModeLevel VeryLow
public static PowerModeLevel[] values()
for (PowerModeLevel c : PowerModeLevel.values()) System.out.println(c);
public static PowerModeLevel 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 value()
public int percent()
public int maxPercent()
public int dutyCycle()
public int inventoryTime()
public int idleTime()
public static PowerModeLevel valueOf(int code)
code - The code to checkpublic static PowerModeLevel valueOfName(java.lang.String name)
name - The name to check.public static java.lang.String[] names()