public enum Flip extends Enum<Flip>
| Enum Constant and Description |
|---|
BOTH |
HORIZONTAL |
NONE |
VERTICAL |
| Modifier and Type | Method and Description |
|---|---|
static Flip |
byIndex(int index) |
static Flip |
byName(String name) |
int |
getIndex() |
String |
getName() |
String |
getName2() |
Flip |
getOpposite() |
boolean |
isBothFlipped() |
boolean |
isHorizontallyFlipped() |
boolean |
isNotFlipped() |
boolean |
isVerticallyFliped() |
static Flip |
random(Random rand) |
String |
toString() |
static Flip |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Flip[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Flip NONE
public static final Flip HORIZONTAL
public static final Flip VERTICAL
public static final Flip BOTH
public static final Flip[] VALUES
public static Flip[] values()
for (Flip c : Flip.values()) System.out.println(c);
public static Flip 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 nullpublic int getIndex()
public Flip getOpposite()
public String getName2()
public static Flip byIndex(int index)
public String getName()
public boolean isNotFlipped()
public boolean isBothFlipped()
public boolean isHorizontallyFlipped()
public boolean isVerticallyFliped()