public enum BatteryStatus extends java.lang.Enum<BatteryStatus>
Enum Constant and Description |
---|
CRITICAL
Critical
|
GOOD
Good
|
INVALID
Invalid
|
LOW
Low
|
NEW
New
|
OK
OK
|
UNRECOGNIZED
The value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.
|
Modifier and Type | Method and Description |
---|---|
int |
getIntValue()
Convert enum to equivalent int value
|
static BatteryStatus |
getValueFromInt(int intValue)
Convert int to equivalent enum value
|
static BatteryStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BatteryStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatteryStatus NEW
public static final BatteryStatus GOOD
public static final BatteryStatus OK
public static final BatteryStatus LOW
public static final BatteryStatus CRITICAL
public static final BatteryStatus INVALID
public static final BatteryStatus UNRECOGNIZED
public static BatteryStatus[] values()
for (BatteryStatus c : BatteryStatus.values()) System.out.println(c);
public static BatteryStatus 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 getIntValue()
public static BatteryStatus getValueFromInt(int intValue)
intValue
- integer to convertCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.