Enum ChargeState
- java.lang.Object
-
- java.lang.Enum<ChargeState>
-
- com.heisha.heisha_sdk.Component.Charger.ChargeState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ChargeState>
public enum ChargeState extends java.lang.Enum<ChargeState>
charging status- Version:
- 1.0.0
- Author:
- wmy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHARGE_STATUS_CHARGE_INIT
charging initiatingCHARGE_STATUS_COMPLETE
charging completeCHARGE_STATUS_COOLING
The battery is cooling before chargingCHARGE_STATUS_FAULT
errorCHARGE_STATUS_POWER_OFF_CHARGE
charging with drone offCHARGE_STATUS_POWER_ON_CHARGE
charging with drone onCHARGE_STATUS_UNCHARGE
uncharged
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChargeState
convert(int state)
convert and return the corresponding enumeration value according to the given sequence numberint
getValue()
static ChargeState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ChargeState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHARGE_STATUS_UNCHARGE
public static final ChargeState CHARGE_STATUS_UNCHARGE
uncharged
-
CHARGE_STATUS_CHARGE_INIT
public static final ChargeState CHARGE_STATUS_CHARGE_INIT
charging initiating
-
CHARGE_STATUS_POWER_OFF_CHARGE
public static final ChargeState CHARGE_STATUS_POWER_OFF_CHARGE
charging with drone off
-
CHARGE_STATUS_POWER_ON_CHARGE
public static final ChargeState CHARGE_STATUS_POWER_ON_CHARGE
charging with drone on
-
CHARGE_STATUS_COMPLETE
public static final ChargeState CHARGE_STATUS_COMPLETE
charging complete
-
CHARGE_STATUS_COOLING
public static final ChargeState CHARGE_STATUS_COOLING
The battery is cooling before charging
-
CHARGE_STATUS_FAULT
public static final ChargeState CHARGE_STATUS_FAULT
error
-
-
Method Detail
-
values
public static ChargeState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChargeState c : ChargeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChargeState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
- Returns:
- Get the enumerated sequence number
-
convert
public static ChargeState convert(int state)
convert and return the corresponding enumeration value according to the given sequence number- Parameters:
state
- the given sequence number- Returns:
- corresponding enumeration value
-
-