Package org.aoju.bus.core.lang.ansi
Enum Class AnsiColor
- All Implemented Interfaces:
Serializable,Comparable<AnsiColor>,Constable,AnsiElement
ANSI标准颜色
来自Spring Boot
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription黑蓝亮黑亮蓝亮青亮绿亮品红亮红亮白亮黄青默认前景色绿品红红白黄 -
Method Summary
-
Enum Constant Details
-
DEFAULT
默认前景色 -
BLACK
黑 -
RED
红 -
GREEN
绿 -
YELLOW
黄 -
BLUE
蓝 -
MAGENTA
品红 -
CYAN
青 -
WHITE
白 -
BRIGHT_BLACK
亮黑 -
BRIGHT_RED
亮红 -
BRIGHT_GREEN
亮绿 -
BRIGHT_YELLOW
亮黄 -
BRIGHT_BLUE
亮蓝 -
BRIGHT_MAGENTA
亮品红 -
BRIGHT_CYAN
亮青 -
BRIGHT_WHITE
亮白
-
-
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
-
toString
- Specified by:
toStringin interfaceAnsiElement- Overrides:
toStringin classEnum<AnsiColor>- Returns:
- ANSI转义编码
-