public enum ConsoleFontStyle extends Enum<ConsoleFontStyle>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getIndex()
获取索引
|
static ConsoleFontStyle |
toEnum(int index)
获取枚举
|
static ConsoleFontStyle |
toEnum(String value)
获取枚举
|
String |
toString()
获取字符串
|
static ConsoleFontStyle |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConsoleFontStyle[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ConsoleFontStyle 默认
public static final ConsoleFontStyle 加粗
public static final ConsoleFontStyle 减弱
public static final ConsoleFontStyle 斜体
public static final ConsoleFontStyle 下划线
public static final ConsoleFontStyle 慢速闪烁
public static final ConsoleFontStyle 快速闪烁
public static ConsoleFontStyle[] values()
for (ConsoleFontStyle c : ConsoleFontStyle.values()) System.out.println(c);
public static ConsoleFontStyle valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getIndex()
public String toString()
toString 在类中 Enum<ConsoleFontStyle>public static ConsoleFontStyle toEnum(String value)
value - 值public static ConsoleFontStyle toEnum(int index)
index - 索引Copyright © 2023. All rights reserved.