public enum ConsoleBackgroundColor extends Enum<ConsoleBackgroundColor>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getIndex()
获取索引
|
static ConsoleBackgroundColor |
toEnum(int index)
获取枚举
|
static ConsoleBackgroundColor |
toEnum(String value)
获取枚举
|
String |
toString()
获取字符串
|
static ConsoleBackgroundColor |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConsoleBackgroundColor[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ConsoleBackgroundColor 默认
public static final ConsoleBackgroundColor 红色
public static final ConsoleBackgroundColor 绿色
public static final ConsoleBackgroundColor 黄色
public static final ConsoleBackgroundColor 蓝色
public static final ConsoleBackgroundColor 紫色
public static final ConsoleBackgroundColor 青色
public static final ConsoleBackgroundColor 灰色
public static final ConsoleBackgroundColor 黑色
public static ConsoleBackgroundColor[] values()
for (ConsoleBackgroundColor c : ConsoleBackgroundColor.values()) System.out.println(c);
public static ConsoleBackgroundColor valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getIndex()
public String toString()
toString 在类中 Enum<ConsoleBackgroundColor>public static ConsoleBackgroundColor toEnum(String value)
value - 值public static ConsoleBackgroundColor toEnum(int index)
index - 索引Copyright © 2023. All rights reserved.