public enum SensorTypeEnum extends Enum<SensorTypeEnum>
| Enum Constant and Description |
|---|
LIGHT_SENSOR |
ROTATION_SENSOR |
TEMPERATURE_SENSOR |
TOUCH_SENSOR |
| Modifier and Type | Method and Description |
|---|---|
static SensorTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensorTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensorTypeEnum TOUCH_SENSOR
public static final SensorTypeEnum TEMPERATURE_SENSOR
public static final SensorTypeEnum ROTATION_SENSOR
public static final SensorTypeEnum LIGHT_SENSOR
public static SensorTypeEnum[] values()
for (SensorTypeEnum c : SensorTypeEnum.values()) System.out.println(c);
public static SensorTypeEnum 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 nullCopyright © 2018. All rights reserved.