public static enum Printer.Color extends Enum<Printer.Color>
| Modifier and Type | Method and Description |
|---|---|
String |
ansi() |
static Printer.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Printer.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Printer.Color RED
public static final Printer.Color YELLOW
public static final Printer.Color GREEN
public static final Printer.Color RESET
public static Printer.Color[] values()
for (Printer.Color c : Printer.Color.values()) System.out.println(c);
public static Printer.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 String ansi()
Copyright © 2014–2022. All rights reserved.