Package org.harctoolbox.girr
Enum Command.MasterType
- All Implemented Interfaces:
Serializable
,Comparable<Command.MasterType>
,java.lang.constant.Constable
- Enclosing class:
- Command
This describes which representation of a Command constitutes the master,
from which the other representations are derived.
Note that raw and prontoHex cannot have toggles.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe Pronto Hex representation is the master.This is an empty signal without data.The protocol/parameter version is the master.The raw representation is the master. -
Method Summary
Modifier and TypeMethodDescriptionstatic Command.MasterType
Safe version of valueOf.static Command.MasterType
Returns the enum constant of this type with the specified name.static Command.MasterType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
raw
The raw representation is the master. Does not have multiple toggle values. -
ccf
The Pronto Hex representation is the master. Does not have multiple toggle values. -
parameters
The protocol/parameter version is the master. May have multiple Pronto Hex/raw representations if the protocol has a toggle. -
empty
This is an empty signal without data.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
safeValueOf
Safe version of valueOf. Returns null for unrecognized arguments.- Parameters:
s
-- Returns:
-