Enum Class CLIStyles

java.lang.Object
java.lang.Enum<CLIStyles>
com.jackmeng.halcyoninae.halcyon.utils.CLIStyles
All Implemented Interfaces:
Serializable, Comparable<CLIStyles>, Constable

public enum CLIStyles extends Enum<CLIStyles>
Represents the styles that can be used with the CLI interface

Adapted from an older version

Since:
2.0
Author:
Jack Meng
  • Enum Constant Details

    • RED_BG

      public static final CLIStyles RED_BG
    • GREEN_BG

      public static final CLIStyles GREEN_BG
    • YELLOW_BG

      public static final CLIStyles YELLOW_BG
    • BLUE_BG

      public static final CLIStyles BLUE_BG
    • MAGENTA_BG

      public static final CLIStyles MAGENTA_BG
    • CYAN_BG

      public static final CLIStyles CYAN_BG
    • WHITE_BG

      public static final CLIStyles WHITE_BG
    • BLACK_BG

      public static final CLIStyles BLACK_BG
    • RESET

      public static final CLIStyles RESET
    • BOLD

      public static final CLIStyles BOLD
    • UNDERLINE

      public static final CLIStyles UNDERLINE
    • REVERSE

      public static final CLIStyles REVERSE
    • HIDDEN

      public static final CLIStyles HIDDEN
    • RED_TXT

      public static final CLIStyles RED_TXT
    • GREEN_TXT

      public static final CLIStyles GREEN_TXT
    • YELLOW_TXT

      public static final CLIStyles YELLOW_TXT
    • BLUE_TXT

      public static final CLIStyles BLUE_TXT
    • MAGENTA_TXT

      public static final CLIStyles MAGENTA_TXT
    • CYAN_TXT

      public static final CLIStyles CYAN_TXT
    • WHITE_TXT

      public static final CLIStyles WHITE_TXT
    • BLACK_TXT

      public static final CLIStyles BLACK_TXT
  • Field Details

    • color

      private final String color
  • Constructor Details

    • CLIStyles

      private CLIStyles(String e)
  • Method Details

    • values

      public static CLIStyles[] 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 CLIStyles 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 String getColor()
      Returns:
      A string formatting code