public enum EightWayDirection extends Enum<EightWayDirection>
Enum Constant and Description |
---|
EAST |
NORTH |
NORTH_EAST |
NORTH_WEST |
SOUTH |
SOUTH_EAST |
SOUTH_WEST |
WEST |
Modifier and Type | Field and Description |
---|---|
private Set<Direction> |
directions |
private static int |
EAST_BIT |
private static int |
NORTH_BIT |
private static int |
NORTHEAST_BIT |
private static int |
NORTHWEST_BIT |
private static int |
SOUTH_BIT |
private static int |
SOUTHEAST_BIT |
private static int |
SOUTHWEST_BIT |
private static int |
WEST_BIT |
Modifier and Type | Method and Description |
---|---|
Set<Direction> |
getDirections() |
static EightWayDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EightWayDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EightWayDirection NORTH
public static final EightWayDirection NORTH_EAST
public static final EightWayDirection EAST
public static final EightWayDirection SOUTH_EAST
public static final EightWayDirection SOUTH
public static final EightWayDirection SOUTH_WEST
public static final EightWayDirection WEST
public static final EightWayDirection NORTH_WEST
private static final int NORTHWEST_BIT
private static final int WEST_BIT
private static final int SOUTHWEST_BIT
private static final int SOUTH_BIT
private static final int SOUTHEAST_BIT
private static final int EAST_BIT
private static final int NORTHEAST_BIT
private static final int NORTH_BIT
public static EightWayDirection[] values()
for (EightWayDirection c : EightWayDirection.values()) System.out.println(c);
public static EightWayDirection 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 null