public enum TurtleAnimation extends java.lang.Enum<TurtleAnimation>
Enum Constant and Description |
---|
MoveBack |
MoveDown |
MoveForward |
MoveUp |
None |
ShortWait |
SwingLeftTool |
SwingRightTool |
TurnLeft |
TurnRight |
Wait |
Modifier and Type | Method and Description |
---|---|
static TurtleAnimation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TurtleAnimation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurtleAnimation None
public static final TurtleAnimation MoveForward
public static final TurtleAnimation MoveBack
public static final TurtleAnimation MoveUp
public static final TurtleAnimation MoveDown
public static final TurtleAnimation TurnLeft
public static final TurtleAnimation TurnRight
public static final TurtleAnimation SwingLeftTool
public static final TurtleAnimation SwingRightTool
public static final TurtleAnimation Wait
public static final TurtleAnimation ShortWait
public static TurtleAnimation[] values()
for (TurtleAnimation c : TurtleAnimation.values()) System.out.println(c);
public static TurtleAnimation 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