Enum Class TrcRGBLight.RGBColor

java.lang.Object
java.lang.Enum<TrcRGBLight.RGBColor>
trclib.archive.TrcRGBLight.RGBColor
All Implemented Interfaces:
Serializable, Comparable<TrcRGBLight.RGBColor>, Constable
Enclosing class:
TrcRGBLight

public static enum TrcRGBLight.RGBColor extends Enum<TrcRGBLight.RGBColor>
  • Enum Constant Details

  • Field Details

    • value

      final int value
  • Constructor Details

    • RGBColor

      private RGBColor(int value)
      Constructor: Create an instance of the enum object with the given value.
      Parameters:
      value - specifies the ordinal value of the color.
  • Method Details

    • values

      public static TrcRGBLight.RGBColor[] 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 TrcRGBLight.RGBColor 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
    • getColor

      public static TrcRGBLight.RGBColor getColor(int value)
      This method returns the color enum with the specified ordinal value.
      Parameters:
      value - specifies the ordinal value of the color.
      Returns:
      color enum with the specified ordinal value.