|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptft.Direction
This final class with a private constructor is used instead of final statics to provide type safety. (In C this would be done with an enum typedef.)
| Field Summary | |
static Direction |
E
East |
static Direction |
N
North |
static Direction |
NE
North-East |
static Direction |
NW
North-West |
static Direction |
S
South |
static Direction |
SE
South-East |
static Direction |
SW
South-West |
static Direction |
W
West |
| Method Summary | |
static Direction |
next(Direction d)
Enumerates directions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Direction N
public static final Direction S
public static final Direction W
public static final Direction E
public static final Direction NW
public static final Direction NE
public static final Direction SW
public static final Direction SE
| Method Detail |
public static Direction next(Direction d)
d - a place to start
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||