Package org.aoju.bus.core.lang.ansi
Enum Class AnsiStyle
- All Implemented Interfaces:
Serializable,Comparable<AnsiStyle>,Constable,AnsiElement
ANSI文本样式风格枚举
- 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 Constants -
Method Summary
-
Enum Constant Details
-
NORMAL
重置/正常 -
BOLD
粗体或增加强度 -
FAINT
弱化(降低强度) -
ITALIC
斜体 -
UNDERLINE
下划线
-
-
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
-
getCode
public int getCode()获取ANSI文本样式风格代码- Specified by:
getCodein interfaceAnsiElement- Returns:
- 文本样式风格代码
-
toString
-