Enum Class AnsiStyle

java.lang.Object
java.lang.Enum<AnsiStyle>
org.springframework.boot.ansi.AnsiStyle
All Implemented Interfaces:
Serializable, Comparable<AnsiStyle>, Constable, AnsiElement

public enum AnsiStyle extends Enum<AnsiStyle> implements AnsiElement
Ansi styles.
Since:
1.3.0
Author:
Phillip Webb
  • Enum Constant Details

    • NORMAL

      public static final AnsiStyle NORMAL
    • BOLD

      public static final AnsiStyle BOLD
    • FAINT

      public static final AnsiStyle FAINT
    • ITALIC

      public static final AnsiStyle ITALIC
    • UNDERLINE

      public static final AnsiStyle UNDERLINE
  • Method Details

    • values

      public static AnsiStyle[] 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 AnsiStyle 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
    • toString

      public String toString()
      Specified by:
      toString in interface AnsiElement
      Overrides:
      toString in class Enum<AnsiStyle>
      Returns:
      the ANSI escape code