org.jboss.forge.shell
Enum ShellColor
java.lang.Object
java.lang.Enum<ShellColor>
org.jboss.forge.shell.ShellColor
- All Implemented Interfaces:
- Serializable, Comparable<ShellColor>
public enum ShellColor
- extends Enum<ShellColor>
- Author:
- Mike Brock .
|
Method Summary |
static ShellColor |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ShellColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NONE
public static final ShellColor NONE
BLACK
public static final ShellColor BLACK
BLUE
public static final ShellColor BLUE
CYAN
public static final ShellColor CYAN
GREEN
public static final ShellColor GREEN
MAGENTA
public static final ShellColor MAGENTA
RED
public static final ShellColor RED
YELLOW
public static final ShellColor YELLOW
WHITE
public static final ShellColor WHITE
BOLD
public static final ShellColor BOLD
ITALIC
public static final ShellColor ITALIC
values
public static ShellColor[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ShellColor c : ShellColor.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ShellColor valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.