public static enum Prompt.Colors extends Enum<Prompt.Colors>
Enum Constant and Description |
---|
BLACK |
BLUE |
CYAN |
DARK_GRAY |
DEFAULT |
GREEN |
LIGHT_BLUE |
LIGHT_CYAN |
LIGHT_GRAY |
LIGHT_GREEN |
LIGHT_MAGENTA |
LIGHT_RED |
LIGHT_YELLOW |
MAGENTA |
RED |
WHITE |
YELLOW |
Modifier and Type | Field and Description |
---|---|
int |
code
The ANSI color code for this color, used as foreground color
|
Modifier and Type | Method and Description |
---|---|
static Prompt.Colors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Prompt.Colors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Prompt.Colors DEFAULT
public static final Prompt.Colors BLACK
public static final Prompt.Colors RED
public static final Prompt.Colors GREEN
public static final Prompt.Colors YELLOW
public static final Prompt.Colors BLUE
public static final Prompt.Colors MAGENTA
public static final Prompt.Colors CYAN
public static final Prompt.Colors LIGHT_GRAY
public static final Prompt.Colors DARK_GRAY
public static final Prompt.Colors LIGHT_RED
public static final Prompt.Colors LIGHT_GREEN
public static final Prompt.Colors LIGHT_YELLOW
public static final Prompt.Colors LIGHT_BLUE
public static final Prompt.Colors LIGHT_MAGENTA
public static final Prompt.Colors LIGHT_CYAN
public static final Prompt.Colors WHITE
public final int code
public static Prompt.Colors[] values()
for (Prompt.Colors c : Prompt.Colors.values()) System.out.println(c);
public static Prompt.Colors valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null