public enum Direction4 extends java.lang.Enum<Direction4>
Modifier and Type | Method and Description |
---|---|
static Direction4 |
getDirection4(Direction direction) |
static Direction4 |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Direction4[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction4 LEFT
public static final Direction4 TOP
public static final Direction4 RIGHT
public static final Direction4 BOTTOM
public static Direction4[] values()
for (Direction4 c : Direction4.values()) System.out.println(c);
public static Direction4 valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Direction4 getDirection4(Direction direction)