Enum Class ConsoleColor
- All Implemented Interfaces:
Serializable, Comparable<ConsoleColor>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConsoleColor(@NonNull String name, char index, @NonNull String ansiCode) -
Method Summary
Modifier and TypeMethodDescriptionansiCode()static @Nullable ConsoleColorbyChar(char index) convertRGBColors(char triggerChar, @NonNull String input) charindex()static @Nullable ConsoleColorstripColor(char triggerChar, @NonNull String input) stripRGBColors(char triggerChar, @NonNull String input) toColoredString(char triggerChar, @NonNull String input) toString()static ConsoleColorReturns the enum constant of this class with the specified name.static ConsoleColor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLACK
-
DARK_BLUE
-
GREEN
-
CYAN
-
DARK_RED
-
PURPLE
-
ORANGE
-
GRAY
-
DARK_GRAY
-
BLUE
-
LIGHT_GREEN
-
AQUA
-
RED
-
PINK
-
YELLOW
-
WHITE
-
OBFUSCATED
-
BOLD
-
STRIKETHROUGH
-
UNDERLINE
-
ITALIC
-
DEFAULT
-
-
Field Details
-
VALUES
-
LOOKUP
- See Also:
-
RGB_ANSI
- See Also:
-
name
-
ansiCode
-
index
private final char index
-
-
Constructor Details
-
ConsoleColor
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toColoredString
-
convertRGBColors
-
stripColor
-
stripRGBColors
-
byChar
-
lastColor
-
toString
-
displayName
-
ansiCode
-
index
public char index()
-