|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<BoardDifficulties>
com.eriksilkensen.sudoku.BoardDifficulties
public enum BoardDifficulties
BoardDifficulties encapsulates the different possible difficulty levels for any given Sudoku Board. It also provides methods for accessing the URL associated with each difficulty level, along with a String representation of each.
| Enum Constant Summary | |
|---|---|
Easy
|
|
Hard
|
|
Harder
|
|
Medium
|
|
SuperEasy
|
|
SuperHard
|
|
VeryEasy
|
|
VeryHard
|
|
| Method Summary | |
|---|---|
java.net.URL |
getURL()
Each difficulty level has its own URL that can be used to access and download Boards from the Vegard Hanssen's menneske Sudoku archive. |
int |
size()
Returns the size - or number of difficulty levels - of this enum |
static BoardDifficulties |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BoardDifficulties[] |
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 BoardDifficulties SuperEasy
public static final BoardDifficulties VeryEasy
public static final BoardDifficulties Easy
public static final BoardDifficulties Medium
public static final BoardDifficulties Hard
public static final BoardDifficulties Harder
public static final BoardDifficulties VeryHard
public static final BoardDifficulties SuperHard
| Method Detail |
|---|
public static BoardDifficulties[] values()
for (BoardDifficulties c : BoardDifficulties.values()) System.out.println(c);
public static BoardDifficulties 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
public java.net.URL getURL()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||