public enum ConsoleColor extends Enum<ConsoleColor>
Enum Constant and Description |
---|
BLACK |
BLUE |
CYAN |
GREEN |
MAGENTA |
RED |
RESET |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
CharSequence |
build(boolean reset,
Object... data) |
static CharSequence |
build(ConsoleColor color,
boolean reset,
Object... data) |
static CharSequence |
build(ConsoleColor color,
Object... data) |
CharSequence |
build(Object... data) |
static CharSequence |
conditional(boolean condition,
ConsoleColor positive,
ConsoleColor negative,
Object... data) |
String |
getEscapeSequence() |
String |
toString() |
String |
toString(Object... data) |
static ConsoleColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsoleColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsoleColor RESET
public static final ConsoleColor BLACK
public static final ConsoleColor RED
public static final ConsoleColor GREEN
public static final ConsoleColor YELLOW
public static final ConsoleColor BLUE
public static final ConsoleColor MAGENTA
public static final ConsoleColor CYAN
public static final ConsoleColor WHITE
public static ConsoleColor[] values()
for (ConsoleColor c : ConsoleColor.values()) System.out.println(c);
public static ConsoleColor 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 static CharSequence build(ConsoleColor color, Object... data)
public static CharSequence build(ConsoleColor color, boolean reset, Object... data)
public static CharSequence conditional(boolean condition, ConsoleColor positive, ConsoleColor negative, Object... data)
public String toString()
toString
in class Enum<ConsoleColor>
public String getEscapeSequence()
public CharSequence build(Object... data)
public CharSequence build(boolean reset, Object... data)
Copyright © 2012–2021 Pi4J. All rights reserved.