Enum Class AnsiColor

java.lang.Object
java.lang.Enum<AnsiColor>
cn.taketoday.core.ansi.AnsiColor
所有已实现的接口:
AnsiElement, Serializable, Comparable<AnsiColor>, Constable

public enum AnsiColor extends Enum<AnsiColor> implements AnsiElement
Ansi colors.
从以下版本开始:
4.0
作者:
Phillip Webb, Geoffrey Chandler
  • 枚举常量详细资料

    • DEFAULT

      public static final AnsiColor DEFAULT
    • BLACK

      public static final AnsiColor BLACK
    • RED

      public static final AnsiColor RED
    • GREEN

      public static final AnsiColor GREEN
    • YELLOW

      public static final AnsiColor YELLOW
    • BLUE

      public static final AnsiColor BLUE
    • MAGENTA

      public static final AnsiColor MAGENTA
    • CYAN

      public static final AnsiColor CYAN
    • WHITE

      public static final AnsiColor WHITE
    • BRIGHT_BLACK

      public static final AnsiColor BRIGHT_BLACK
    • BRIGHT_RED

      public static final AnsiColor BRIGHT_RED
    • BRIGHT_GREEN

      public static final AnsiColor BRIGHT_GREEN
    • BRIGHT_YELLOW

      public static final AnsiColor BRIGHT_YELLOW
    • BRIGHT_BLUE

      public static final AnsiColor BRIGHT_BLUE
    • BRIGHT_MAGENTA

      public static final AnsiColor BRIGHT_MAGENTA
    • BRIGHT_CYAN

      public static final AnsiColor BRIGHT_CYAN
    • BRIGHT_WHITE

      public static final AnsiColor BRIGHT_WHITE
  • 字段详细资料

    • code

      private final String code
  • 构造器详细资料

    • AnsiColor

      private AnsiColor(String code)
  • 方法详细资料

    • values

      public static AnsiColor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AnsiColor 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • toString

      public String toString()
      指定者:
      toString 在接口中 AnsiElement
      覆盖:
      toString 在类中 Enum<AnsiColor>
      返回:
      the ANSI escape code