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