public enum ShapeDirection extends Enum<ShapeDirection>
Modifier and Type | Field and Description |
---|---|
static int |
DOWN_ORD |
static int |
LEFT_ORD |
static int |
RIGHT_ORD |
static int |
UP_ORD |
Modifier and Type | Method and Description |
---|---|
static ShapeDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShapeDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShapeDirection UP
public static final ShapeDirection RIGHT
public static final ShapeDirection DOWN
public static final ShapeDirection LEFT
public static final int UP_ORD
public static final int RIGHT_ORD
public static final int DOWN_ORD
public static final int LEFT_ORD
public static ShapeDirection[] values()
for (ShapeDirection c : ShapeDirection.values()) System.out.println(c);
public static ShapeDirection 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 © 2015. All rights reserved.