public enum BatteryInfo extends java.lang.Enum<BatteryInfo>
BatteryInfo enumeration is the class that includes the battery info.| Enum Constant and Description |
|---|
CAPACITY_FULL
Last remembered value of charge in when battery became full/empty in mAh.
|
CAPACITY_REMAINING
The instantaneous value of the remaining available capacity of the battery in mAh.
|
CHARGE_CURRENT_MAX
The value of the maximum charge current recorded by the battery during its life (in mA).
|
DISCHARGE_CURRENT_MAX
The value of the maximum discharge current recorded by the battery during its life (in mA).
|
FULL_CAPACITY_DESIGN
The capacity by desing of the battery in mAh.
|
MANUFACTURER
The battery pack manufacturer name as set internally in the battery pack by the manufacturer.
|
MODEL_NAME
The battery model name as set internally in the battery pack by the manufacturer.
|
PRODUCT_NUMBER
The battery product number as set internally in the battery pack by the manufacturer.
|
PRODUCTION_MONTH
The month of the production of the battery.
|
PRODUCTION_WEEK
The week of the production of the battery.
|
PRODUCTION_YEAR
The year of the production of the battery.
|
SERIAL_NUMBER
The battery serial number as set internally in the battery pack by the manufacturer.
|
STATE_OF_HEALTH
The percentage of the state of health of the battery.
|
TECHNOLOGY
The battery technology as set internally in the battery pack by the manufacturer.
|
TEMPERATURE_MAX
The value of the maximum temperature recorded by the battery during its life (in 0.1 °C).
|
TEMPERATURE_MIN
The value of the minimum temperature recorded by the battery during its life (in 0.1 °C).
|
TIME_TO_EMPTY
The estimated time left for battery to be considered empty (in seconds).
|
TOTAL_DISCHARGE
The value of the total amount of discharge current (in 0.1 Ah) caused the charging cycles of the battery.
|
VOLTAGE_MAX
The value of the maximum voltage recorded by the battery during its life (in mV).
|
VOLTAGE_MIN
The value of the minimum voltage recorded by the battery during its life (in mV).
|
| Modifier and Type | Method and Description |
|---|---|
static BatteryInfo |
fromInt(int n)
Retrieves the corresponding BatteryInfo value, from a valid integer.
|
int |
toInt()
Converts the BatteryInfo to its integer corresponding value.
|
java.lang.String |
toString() |
static BatteryInfo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BatteryInfo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatteryInfo STATE_OF_HEALTH
int.public static final BatteryInfo TOTAL_DISCHARGE
int.public static final BatteryInfo CAPACITY_REMAINING
int.public static final BatteryInfo CAPACITY_FULL
int.public static final BatteryInfo TEMPERATURE_MIN
int.public static final BatteryInfo TEMPERATURE_MAX
int.public static final BatteryInfo VOLTAGE_MIN
int.public static final BatteryInfo VOLTAGE_MAX
int.public static final BatteryInfo CHARGE_CURRENT_MAX
int.public static final BatteryInfo DISCHARGE_CURRENT_MAX
int.public static final BatteryInfo TIME_TO_EMPTY
int.public static final BatteryInfo FULL_CAPACITY_DESIGN
int.public static final BatteryInfo PRODUCTION_WEEK
int.
This property is not supported by all battery types. The batteries do not support PRODUCTION_WEEK property, they support PRODUCTION_MONTH property.public static final BatteryInfo PRODUCTION_MONTH
int.
This property is not supported by all battery types. The batteries do not support PRODUCTION_MONTH property, they support PRODUCTION_WEEK property.public static final BatteryInfo PRODUCTION_YEAR
int.public static final BatteryInfo MANUFACTURER
String.public static final BatteryInfo SERIAL_NUMBER
String.public static final BatteryInfo MODEL_NAME
String.public static final BatteryInfo TECHNOLOGY
String.public static final BatteryInfo PRODUCT_NUMBER
String.public static BatteryInfo[] values()
for (BatteryInfo c : BatteryInfo.values()) System.out.println(c);
public static BatteryInfo 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 BatteryInfo fromInt(int n)
n - intpublic java.lang.String toString()
toString in class java.lang.Enum<BatteryInfo>