Enum Class Colors

java.lang.Object
java.lang.Enum<Colors>
com.helixframework.console.Colors
All Implemented Interfaces:
Serializable, Comparable<Colors>, Constable

public enum Colors extends Enum<Colors>
ANSI colors.
  • Enum Constant Details

    • RESET

      public static final Colors RESET
    • BOLD

      public static final Colors BOLD
    • BLACK

      public static final Colors BLACK
    • RED

      public static final Colors RED
    • GREEN

      public static final Colors GREEN
    • YELLOW

      public static final Colors YELLOW
    • BLUE

      public static final Colors BLUE
    • PURPLE

      public static final Colors PURPLE
    • CYAN

      public static final Colors CYAN
    • WHITE

      public static final Colors WHITE
    • BOLD_BLACK

      public static final Colors BOLD_BLACK
    • BOLD_RED

      public static final Colors BOLD_RED
    • BOLD_GREEN

      public static final Colors BOLD_GREEN
    • BOLD_YELLOW

      public static final Colors BOLD_YELLOW
    • BOLD_BLUE

      public static final Colors BOLD_BLUE
    • BOLD_PURPLE

      public static final Colors BOLD_PURPLE
    • BOLD_CYAN

      public static final Colors BOLD_CYAN
    • BOLD_WHITE

      public static final Colors BOLD_WHITE
    • BLACK_BACKGROUND

      public static final Colors BLACK_BACKGROUND
    • RED_BACKGROUND

      public static final Colors RED_BACKGROUND
    • GREEN_BACKGROUND

      public static final Colors GREEN_BACKGROUND
    • YELLOW_BACKGROUND

      public static final Colors YELLOW_BACKGROUND
    • BLUE_BACKGROUND

      public static final Colors BLUE_BACKGROUND
    • PURPLE_BACKGROUND

      public static final Colors PURPLE_BACKGROUND
    • CYAN_BACKGROUND

      public static final Colors CYAN_BACKGROUND
    • WHITE_BACKGROUND

      public static final Colors WHITE_BACKGROUND
  • Method Details

    • values

      public static Colors[] 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 Colors 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
    • getCode

      public String getCode()
      Returns the ANSI code.
      Returns:
      ansi code
    • toString

      public String toString()
      Returns the ANSI code.
      Overrides:
      toString in class Enum<Colors>
      Returns:
      ansi code