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