sudoku
Enum SolutionType

java.lang.Object
  extended by java.lang.Enum<SolutionType>
      extended by sudoku.SolutionType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SolutionType>

public enum SolutionType
extends java.lang.Enum<SolutionType>

Type of solution for puzzle -- NO_SOLUTION, EASY_SOLUTION (solvable with only unique moves), HARD_SOLUTION (solvable but with some non-unique moves). Note that generated HARD_SOLUTION puzzles will still have a unique solution.


Enum Constant Summary
EASY_SOLUTION
          Puzzle can be solved with only unique moves
HARD_SOLUTION
          Puzzle can be solved but has some non-unique moves.
NO_SOLUTION
          Puzzle cannot be solved with current values
 
Method Summary
static SolutionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SolutionType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_SOLUTION

public static final SolutionType NO_SOLUTION
Puzzle cannot be solved with current values


EASY_SOLUTION

public static final SolutionType EASY_SOLUTION
Puzzle can be solved with only unique moves


HARD_SOLUTION

public static final SolutionType HARD_SOLUTION
Puzzle can be solved but has some non-unique moves.

Method Detail

values

public static SolutionType[] 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 (SolutionType c : SolutionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SolutionType 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 name
java.lang.NullPointerException - if the argument is null