org.eviline
Enum ShapeDirection
java.lang.Object
java.lang.Enum<ShapeDirection>
org.eviline.ShapeDirection
- All Implemented Interfaces:
- Serializable, Comparable<ShapeDirection>
public enum ShapeDirection
- extends Enum<ShapeDirection>
The direction a shape can be pointing
- Author:
- robin
Method Summary |
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. |
UP
public static final ShapeDirection UP
RIGHT
public static final ShapeDirection RIGHT
LEFT
public static final ShapeDirection LEFT
DOWN
public static final ShapeDirection DOWN
values
public static ShapeDirection[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ShapeDirection c : ShapeDirection.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ShapeDirection valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2013. All Rights Reserved.