public enum CalibrationMenu extends Enum<CalibrationMenu>
Used for executing calibration routines
MainMenu
Enum Constant and Description |
---|
BACK |
COLOR_LIGHT |
COLOR_MOTOR |
PROXIMITY |
SENSOR |
TRAY |
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 CalibrationMenu |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalibrationMenu[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalibrationMenu SENSOR
public static final CalibrationMenu COLOR_MOTOR
public static final CalibrationMenu TRAY
public static final CalibrationMenu PROXIMITY
public static final CalibrationMenu COLOR_LIGHT
public static final CalibrationMenu BACK
private static final String title
private final int value
private final String textRepresentation
public static CalibrationMenu[] values()
for (CalibrationMenu c : CalibrationMenu.values()) System.out.println(c);
public static CalibrationMenu 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<CalibrationMenu>
int getValue()
public static String[] getItems()
public static String getTitle()