|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SolutionType>
sudoku.SolutionType
public 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 |
---|
public static final SolutionType NO_SOLUTION
public static final SolutionType EASY_SOLUTION
public static final SolutionType HARD_SOLUTION
Method Detail |
---|
public static SolutionType[] values()
for (SolutionType c : SolutionType.values()) System.out.println(c);
public static SolutionType 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 name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |