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