Enum PositionBarState
- java.lang.Object
-
- java.lang.Enum<PositionBarState>
-
- com.heisha.heisha_sdk.Component.PositionBar.PositionBarState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PositionBarState>
public enum PositionBarState extends java.lang.Enum<PositionBarState>
Charging bars status- Version:
- 1.0.0
- Author:
- wmy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POSITION_BAR_STATUS_FAULT
error statusPOSITION_BAR_STATUS_FIRST_SET_LOCKING
The first set of charging bars are lockingPOSITION_BAR_STATUS_LOCKED
Status lockedPOSITION_BAR_STATUS_SECOND_SET_LOCKING
The second set of charging bars are lockingPOSITION_BAR_STATUS_UNKNOWN
Status unknownPOSITION_BAR_STATUS_UNLOCKED
Status releasedPOSITION_BAR_STATUS_UNLOCKING
charging bars are releasing
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PositionBarState
convert(int state)
convert and return the corresponding enumeration value according to the given sequence numberstatic PositionBarState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PositionBarState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POSITION_BAR_STATUS_UNKNOWN
public static final PositionBarState POSITION_BAR_STATUS_UNKNOWN
Status unknown
-
POSITION_BAR_STATUS_UNLOCKED
public static final PositionBarState POSITION_BAR_STATUS_UNLOCKED
Status released
-
POSITION_BAR_STATUS_LOCKED
public static final PositionBarState POSITION_BAR_STATUS_LOCKED
Status locked
-
POSITION_BAR_STATUS_FIRST_SET_LOCKING
public static final PositionBarState POSITION_BAR_STATUS_FIRST_SET_LOCKING
The first set of charging bars are locking
-
POSITION_BAR_STATUS_SECOND_SET_LOCKING
public static final PositionBarState POSITION_BAR_STATUS_SECOND_SET_LOCKING
The second set of charging bars are locking
-
POSITION_BAR_STATUS_UNLOCKING
public static final PositionBarState POSITION_BAR_STATUS_UNLOCKING
charging bars are releasing
-
POSITION_BAR_STATUS_FAULT
public static final PositionBarState POSITION_BAR_STATUS_FAULT
error status
-
-
Method Detail
-
values
public static PositionBarState[] 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 (PositionBarState c : PositionBarState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PositionBarState 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
-
convert
public static PositionBarState 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
-
-