private static enum AbstractMessageFormatter.Color extends java.lang.Enum<AbstractMessageFormatter.Color>
Enum Constant and Description |
---|
BOLD |
ERROR |
NO_COLOR |
UNBOLD |
WARNING |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
controlCharacter |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getControlCharacter() |
static AbstractMessageFormatter.Color |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractMessageFormatter.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractMessageFormatter.Color ERROR
public static final AbstractMessageFormatter.Color WARNING
public static final AbstractMessageFormatter.Color NO_COLOR
public static final AbstractMessageFormatter.Color BOLD
public static final AbstractMessageFormatter.Color UNBOLD
public static AbstractMessageFormatter.Color[] values()
for (AbstractMessageFormatter.Color c : AbstractMessageFormatter.Color.values()) System.out.println(c);
public static AbstractMessageFormatter.Color valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getControlCharacter()