public enum MainMenu extends Enum<MainMenu>
TestsMenu
,
CalibrationMenu
,
PatternMenu
Enum Constant and Description |
---|
CALIBRATION |
EXIT |
PATTERN |
SOLVE |
TESTS |
Modifier and Type | Field and Description |
---|---|
private String |
textRepresentation |
private static String |
title |
private int |
value |
Modifier and Type | Method and Description |
---|---|
static String[] |
getItems() |
static String |
getTitle() |
(package private) int |
getValue() |
String |
toString() |
static MainMenu |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MainMenu[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MainMenu SOLVE
public static final MainMenu TESTS
public static final MainMenu CALIBRATION
public static final MainMenu PATTERN
public static final MainMenu EXIT
private static final String title
private final int value
private final String textRepresentation
public static MainMenu[] values()
for (MainMenu c : MainMenu.values()) System.out.println(c);
public static MainMenu 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 nullint getValue()
public static String[] getItems()
public static String getTitle()