Enum Class AuxiliaryControlEnum
java.lang.Object
java.lang.Enum<AuxiliaryControlEnum>
io.github.lunasaw.gb28181.common.entity.control.instruction.enums.AuxiliaryControlEnum
- All Implemented Interfaces:
Serializable
,Comparable<AuxiliaryControlEnum>
,java.lang.constant.Constable
辅助开关控制指令枚举
根据 A.3.7 辅助开关控制指令 规范实现
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AuxiliaryControlEnum
getByCode
(byte code) 根据指令码查找枚举static AuxiliaryControlEnum
根据名称查找枚举static boolean
isValidSwitchNumber
(int switchNumber) 验证辅助开关编号是否有效static AuxiliaryControlEnum
Returns the enum constant of this class with the specified name.static AuxiliaryControlEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SWITCH_ON
-
SWITCH_OFF
-
-
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
-
getByCode
根据指令码查找枚举 -
getByName
根据名称查找枚举 -
isValidSwitchNumber
public static boolean isValidSwitchNumber(int switchNumber) 验证辅助开关编号是否有效- Parameters:
switchNumber
- 辅助开关编号 (0-255)- Returns:
- 是否有效
-