vitro.util
Enum MazeFactory.Delta
java.lang.Object
java.lang.Enum<MazeFactory.Delta>
vitro.util.MazeFactory.Delta
- All Implemented Interfaces:
- Serializable, Comparable<MazeFactory.Delta>
- Enclosing class:
- MazeFactory
protected static enum MazeFactory.Delta
- extends Enum<MazeFactory.Delta>
UP
public static final MazeFactory.Delta UP
DOWN
public static final MazeFactory.Delta DOWN
LEFT
public static final MazeFactory.Delta LEFT
RIGHT
public static final MazeFactory.Delta RIGHT
dx
public final int dx
dy
public final int dy
direction
public final Maze.Direction direction
values
public static MazeFactory.Delta[] 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 (MazeFactory.Delta c : MazeFactory.Delta.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MazeFactory.Delta 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