public static enum AnsiColor.Color extends Enum<AnsiColor.Color>
Enum Constant and Description |
---|
BLACK |
BLUE |
CYAN |
GREEN |
MAGENTA |
RED |
WHITE |
YELLOW |
Modifier and Type | Field and Description |
---|---|
int |
code |
Modifier and Type | Method and Description |
---|---|
static AnsiColor.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnsiColor.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnsiColor.Color BLACK
public static final AnsiColor.Color RED
public static final AnsiColor.Color GREEN
public static final AnsiColor.Color YELLOW
public static final AnsiColor.Color BLUE
public static final AnsiColor.Color MAGENTA
public static final AnsiColor.Color CYAN
public static final AnsiColor.Color WHITE
public static AnsiColor.Color[] values()
for (AnsiColor.Color c : AnsiColor.Color.values()) System.out.println(c);
public static AnsiColor.Color 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 nullCopyright © 2019. All rights reserved.