public enum AbsoluteDirection extends Enum<AbsoluteDirection>
Enum Constant and Description |
---|
EAST |
NORTH |
NORTHEAST |
NORTHWEST |
SOUTH |
SOUTHEAST |
SOUTHWEST |
WEST |
Modifier and Type | Method and Description |
---|---|
static AbsoluteDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbsoluteDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbsoluteDirection NORTH
public static final AbsoluteDirection NORTHEAST
public static final AbsoluteDirection EAST
public static final AbsoluteDirection SOUTHEAST
public static final AbsoluteDirection SOUTH
public static final AbsoluteDirection SOUTHWEST
public static final AbsoluteDirection WEST
public static final AbsoluteDirection NORTHWEST
public static AbsoluteDirection[] values()
for (AbsoluteDirection c : AbsoluteDirection.values()) System.out.println(c);
public static AbsoluteDirection 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 nullCopyright © 2019. All rights reserved.