public enum BatteryType extends java.lang.Enum<BatteryType> implements android.os.Parcelable
Enum Constant and Description |
---|
AC |
CR2016 |
CR2032 |
CR2477 |
ER14505 |
UNKNOWN |
USB |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<BatteryType> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static BatteryType |
getBatteryType(int type) |
int |
getInt() |
static BatteryType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BatteryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToParcel(android.os.Parcel parcel,
int i) |
public static final BatteryType UNKNOWN
public static final BatteryType CR2016
public static final BatteryType CR2032
public static final BatteryType CR2477
public static final BatteryType ER14505
public static final BatteryType AC
public static final BatteryType USB
public static final android.os.Parcelable.Creator<BatteryType> CREATOR
public static BatteryType[] values()
for (BatteryType c : BatteryType.values()) System.out.println(c);
public static BatteryType 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 getInt()
public static BatteryType getBatteryType(int type)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable