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