Package org.apache.calcite.example.maze
Enum Maze.Direction
- java.lang.Object
-
- java.lang.Enum<Maze.Direction>
-
- org.apache.calcite.example.maze.Maze.Direction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Maze.Direction>
- Enclosing class:
- Maze
private static enum Maze.Direction extends java.lang.Enum<Maze.Direction>
Direction.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Direction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Maze.Direction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Maze.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UP
public static final Maze.Direction UP
-
LEFT
public static final Maze.Direction LEFT
-
DOWN
public static final Maze.Direction DOWN
-
RIGHT
public static final Maze.Direction RIGHT
-
BACKTRACK
public static final Maze.Direction BACKTRACK
-
-
Method Detail
-
values
public static Maze.Direction[] 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 (Maze.Direction c : Maze.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Maze.Direction valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-