Enum Constant and Description |
---|
FRONT_BACK |
LEFT_RIGHT |
NONE |
Modifier and Type | Method and Description |
---|---|
Direction |
mirror(Direction facing) |
int |
mirrorRotation(int rotationIn,
int rotationCount) |
Rotation |
toRotation(Direction facing) |
static Mirror |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mirror[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mirror NONE
public static final Mirror LEFT_RIGHT
public static final Mirror FRONT_BACK
public static Mirror[] values()
for (Mirror c : Mirror.values()) System.out.println(c);
public static Mirror 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 int mirrorRotation(int rotationIn, int rotationCount)