@Incubating public enum ConsoleOutput extends Enum<ConsoleOutput>
Enum Constant and Description |
---|
Auto
Enable color and rich output when the current process is attached to a console, disable when not attached to a console.
|
Plain
Disable all color and rich output.
|
Rich
Enable color and rich output, regardless of whether the current process is attached to a console or not.
|
Modifier and Type | Method and Description |
---|---|
static ConsoleOutput |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsoleOutput[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsoleOutput Plain
public static final ConsoleOutput Auto
public static final ConsoleOutput Rich
public static ConsoleOutput[] values()
for (ConsoleOutput c : ConsoleOutput.values()) System.out.println(c);
public static ConsoleOutput 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 null