Package de.chiflux.tesla
Enum Class TeslaApiDefines.CHARGE_STATE
- All Implemented Interfaces:
Serializable,Comparable<TeslaApiDefines.CHARGE_STATE>,Constable
- Enclosing interface:
- TeslaApiDefines
The charge state of the vehicles API can be one of these states.
Charging: The vehicle is currently charging.
Complete: The vehicle has completed charging.
Disconnected: There is currently no charger connected to the vehicle.
Stopped: The vehicle was charging but has since stopped.
NoPower: There is a charger connected, but it's not delivering power.
Starting: The charging process is starting.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe vehicle is currently charging.Complete: The vehicle has completed charging.Disconnected: There is currently no charger connected to the vehicle.NoPower: There is a charger connected, but it's not delivering power.Starting: The charging process is starting.Stopped: The vehicle was charging but has since stopped. -
Method Summary
Modifier and TypeMethodDescriptionstatic TeslaApiDefines.CHARGE_STATEReturns the enum constant of this class with the specified name.static TeslaApiDefines.CHARGE_STATE[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Charging
The vehicle is currently charging. -
Complete
Complete: The vehicle has completed charging. -
Disconnected
Disconnected: There is currently no charger connected to the vehicle. -
Stopped
Stopped: The vehicle was charging but has since stopped. -
NoPower
NoPower: There is a charger connected, but it's not delivering power. -
Starting
Starting: The charging process is starting.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-