Enum Maze

    • Enum Constant Detail

      • MAZE_1

        public static final Maze MAZE_1
      • MAZE_2

        public static final Maze MAZE_2
      • MAZE_3

        public static final Maze MAZE_3
      • MAZE_4

        public static final Maze MAZE_4
      • MAZE_5

        public static final Maze MAZE_5
      • MAZE_6

        public static final Maze MAZE_6
      • MAZE_7

        public static final Maze MAZE_7
      • MAZE_8

        public static final Maze MAZE_8
      • MAZE_9

        public static final Maze MAZE_9
      • MAZE_10

        public static final Maze MAZE_10
    • Method Detail

      • values

        public static Maze[] 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 c : Maze.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 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
      • fromWalls

        public static Maze fromWalls​(int walls)
      • getWalls

        public int getWalls()