public enum TurtleColors extends java.lang.Enum<TurtleColors>
| Enum Constant and Description |
|---|
BLACK |
BLUE |
BROWN |
CYAN |
GREEN |
MAGENTA |
ORANGE |
RED |
WHITE |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static TurtleColors |
valueOf(int value) |
static TurtleColors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TurtleColors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurtleColors BLACK
public static final TurtleColors BLUE
public static final TurtleColors GREEN
public static final TurtleColors CYAN
public static final TurtleColors RED
public static final TurtleColors MAGENTA
public static final TurtleColors YELLOW
public static final TurtleColors WHITE
public static final TurtleColors BROWN
public static final TurtleColors ORANGE
public static TurtleColors[] values()
for (TurtleColors c : TurtleColors.values()) System.out.println(c);
public static TurtleColors 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 int getValue()
public static TurtleColors valueOf(int value)