public enum PatternMenu extends Enum<PatternMenu>
Used for solving the cube to unique pattern
MainMenu
Enum Constant and Description |
---|
BACK |
CROSS_4 |
CUBE_CUBE |
CUBE_CUBE_CUBE |
PLUS_MINUS |
Modifier and Type | Field and Description |
---|---|
private String |
pattern |
private String |
textRepresentation |
private static String |
title |
private int |
value |
Modifier and Type | Method and Description |
---|---|
static String[] |
getItems() |
String |
getPattern() |
static String |
getTitle() |
(package private) int |
getValue() |
String |
toString() |
static PatternMenu |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PatternMenu[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PatternMenu PLUS_MINUS
public static final PatternMenu CROSS_4
public static final PatternMenu CUBE_CUBE
public static final PatternMenu CUBE_CUBE_CUBE
public static final PatternMenu BACK
private static final String title
private final int value
private final String textRepresentation
private final String pattern
public static PatternMenu[] values()
for (PatternMenu c : PatternMenu.values()) System.out.println(c);
public static PatternMenu 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 String toString()
toString
in class Enum<PatternMenu>
int getValue()
public static String[] getItems()
public String getPattern()
public static String getTitle()