java.lang.Object java.lang.Enum<PuzzleWord.Directions> PuzzleWord.Directions
public static enum PuzzleWord.Directions
The different orientations in which a puzzle word can be placed. {upleft, up, upright, left, none, right, downleft, down, downright}
Enum Constant Summary | |
---|---|
down
|
|
downleft
|
|
downright
|
|
left
|
|
none
|
|
right
|
|
up
|
|
upleft
|
|
upright
|
Method Summary | |
---|---|
static PuzzleWord.Directions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PuzzleWord.Directions[] |
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 PuzzleWord.Directions upleft
public static final PuzzleWord.Directions up
public static final PuzzleWord.Directions upright
public static final PuzzleWord.Directions left
public static final PuzzleWord.Directions none
public static final PuzzleWord.Directions right
public static final PuzzleWord.Directions downleft
public static final PuzzleWord.Directions down
public static final PuzzleWord.Directions downright
Method Detail |
---|
public static PuzzleWord.Directions[] values()
for (PuzzleWord.Directions c : PuzzleWord.Directions.values()) System.out.println(c);
public static PuzzleWord.Directions 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