utfx.printers
Enum AnsiString.Colour
java.lang.Object
java.lang.Enum<AnsiString.Colour>
utfx.printers.AnsiString.Colour
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<AnsiString.Colour>
- Enclosing class:
- AnsiString
public static enum AnsiString.Colour
- extends java.lang.Enum<AnsiString.Colour>
Method Summary |
static AnsiString.Colour |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AnsiString.Colour[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
RED
public static final AnsiString.Colour RED
GREEN
public static final AnsiString.Colour GREEN
BLUE
public static final AnsiString.Colour BLUE
PURPLE
public static final AnsiString.Colour PURPLE
CYAN
public static final AnsiString.Colour CYAN
YELLOW
public static final AnsiString.Colour YELLOW
values
public static final AnsiString.Colour[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(AnsiString.Colour c : AnsiString.Colour.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static AnsiString.Colour valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name