Enum Class CanandSettingsManager.ResultCode

java.lang.Object
java.lang.Enum<CanandSettingsManager.ResultCode>
com.reduxrobotics.canand.CanandSettingsManager.ResultCode
All Implemented Interfaces:
Serializable, Comparable<CanandSettingsManager.ResultCode>, Constable
Enclosing class:
CanandSettingsManager<T extends CanandSettings>

public static enum CanandSettingsManager.ResultCode extends Enum<CanandSettingsManager.ResultCode>
Setting result codes. Positive indicates codes returnable from the "report setting" packet, while negative indicates codes returnable from other causes (e.g. timeouts)
  • Enum Constant Details

  • Method Details

    • values

      public static CanandSettingsManager.ResultCode[] 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

      public static CanandSettingsManager.ResultCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getIndex

      public int getIndex()
      Return associated index (unsigned for values >= 0).
      Returns:
      index value
    • fromIndex

      public static CanandSettingsManager.ResultCode fromIndex(int index)
      Return the appropirate enum from the index value.
      Parameters:
      index - index value
      Returns:
      corresponding enum.