org.infinispan.cli.shell
Enum Color
java.lang.Object
java.lang.Enum<Color>
org.infinispan.cli.shell.Color
- All Implemented Interfaces:
- Serializable, Comparable<Color>
public enum Color
- extends Enum<Color>
- Author:
- Mike Brock .
Method Summary |
static Color |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NONE
public static final Color NONE
BLACK
public static final Color BLACK
BLUE
public static final Color BLUE
CYAN
public static final Color CYAN
GREEN
public static final Color GREEN
MAGENTA
public static final Color MAGENTA
RED
public static final Color RED
YELLOW
public static final Color YELLOW
WHITE
public static final Color WHITE
BOLD
public static final Color BOLD
ITALIC
public static final Color ITALIC
values
public static Color[] 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 (Color c : Color.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Color 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, a division of Red Hat. All Rights Reserved.