enum StandardColor extends java.lang.Enum<StandardColor>
Enum Constant and Description |
---|
Black |
Blue |
Brown |
Green |
Orange |
Purple |
Red |
Yellow |
Modifier and Type | Method and Description |
---|---|
static StandardColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StandardColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardColor Black
public static final StandardColor Brown
public static final StandardColor Red
public static final StandardColor Orange
public static final StandardColor Yellow
public static final StandardColor Green
public static final StandardColor Blue
public static final StandardColor Purple
public static StandardColor[] values()
for (StandardColor c : StandardColor.values()) System.out.println(c);
public static StandardColor 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 null