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