public static enum Ansi.Color extends Enum<Ansi.Color> implements Ansi.Parameter
| Enum Constant and Description |
|---|
BLACK |
BLUE |
BRIGHT_BLACK |
BRIGHT_BLUE |
BRIGHT_CYAN |
BRIGHT_GREEN |
BRIGHT_MAGENTA |
BRIGHT_RED |
BRIGHT_WHITE |
BRIGHT_YELLOW |
CYAN |
GREEN |
MAGENTA |
RED |
WHITE |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
static Ansi.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ansi.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ansi.Color BLACK
public static final Ansi.Color RED
public static final Ansi.Color GREEN
public static final Ansi.Color YELLOW
public static final Ansi.Color BLUE
public static final Ansi.Color MAGENTA
public static final Ansi.Color CYAN
public static final Ansi.Color WHITE
public static final Ansi.Color BRIGHT_BLACK
public static final Ansi.Color BRIGHT_RED
public static final Ansi.Color BRIGHT_GREEN
public static final Ansi.Color BRIGHT_YELLOW
public static final Ansi.Color BRIGHT_BLUE
public static final Ansi.Color BRIGHT_MAGENTA
public static final Ansi.Color BRIGHT_CYAN
public static final Ansi.Color BRIGHT_WHITE
public static Ansi.Color[] values()
for (Ansi.Color c : Ansi.Color.values()) System.out.println(c);
public static Ansi.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 nullpublic int code()
code in interface Ansi.ParameterCopyright © 2022. All rights reserved.