Enum Command.MasterType

java.lang.Object
java.lang.Enum<Command.MasterType>
org.harctoolbox.girr.Command.MasterType
All Implemented Interfaces:
Serializable, Comparable<Command.MasterType>, java.lang.constant.Constable
Enclosing class:
Command

public static enum Command.MasterType extends Enum<Command.MasterType>
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.
  • Enum Constant Details

    • raw

      public static final Command.MasterType raw
      The raw representation is the master. Does not have multiple toggle values.
    • ccf

      public static final Command.MasterType ccf
      The Pronto Hex representation is the master. Does not have multiple toggle values.
    • parameters

      public static final Command.MasterType parameters
      The protocol/parameter version is the master. May have multiple Pronto Hex/raw representations if the protocol has a toggle.
    • empty

      public static final Command.MasterType empty
      This is an empty signal without data.
  • Method Details

    • values

      public static Command.MasterType[] 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

      public static Command.MasterType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • safeValueOf

      public static Command.MasterType safeValueOf(String s)
      Safe version of valueOf. Returns null for unrecognized arguments.
      Parameters:
      s -
      Returns: