public enum CompassDirection extends Enum<CompassDirection>
| Enum Constant and Description |
|---|
EAST
Direction East
|
NORTH
Direction North
|
NORTHEAST
Direction Northeast
|
NORTHWEST
Direction Northwest
|
SOUTH
Direction South
|
SOUTHEAST
Direction Southeast
|
SOUTHWEST
Direction Southwest
|
WEST
Direction West
|
| Modifier and Type | Method and Description |
|---|---|
static CompassDirection |
valueForString(String value)
Convert String to CompassDirection
|
static CompassDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompassDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompassDirection NORTH
public static final CompassDirection NORTHWEST
public static final CompassDirection WEST
public static final CompassDirection SOUTHWEST
public static final CompassDirection SOUTH
public static final CompassDirection SOUTHEAST
public static final CompassDirection EAST
public static final CompassDirection NORTHEAST
public static CompassDirection[] values()
for (CompassDirection c : CompassDirection.values()) System.out.println(c);
public static CompassDirection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static CompassDirection valueForString(String value)
value - String