public static enum TiltSensor.TiltSensorDirection extends java.lang.Enum<TiltSensor.TiltSensorDirection>
Enum Constant and Description |
---|
TILT_SENSOR_DIRECTION_BACKWARD
Backward
|
TILT_SENSOR_DIRECTION_FORWARD
Forward
|
TILT_SENSOR_DIRECTION_LEFT
Left
|
TILT_SENSOR_DIRECTION_NEUTRAL
Neutral
|
TILT_SENSOR_DIRECTION_RIGHT
Right
|
TILT_SENSOR_DIRECTION_UNKNOWN
Unknown
|
Modifier and Type | Method and Description |
---|---|
static TiltSensor.TiltSensorDirection |
fromInteger(int value) |
int |
getValue() |
java.lang.String |
toString() |
static TiltSensor.TiltSensorDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TiltSensor.TiltSensorDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TiltSensor.TiltSensorDirection TILT_SENSOR_DIRECTION_NEUTRAL
public static final TiltSensor.TiltSensorDirection TILT_SENSOR_DIRECTION_BACKWARD
public static final TiltSensor.TiltSensorDirection TILT_SENSOR_DIRECTION_RIGHT
public static final TiltSensor.TiltSensorDirection TILT_SENSOR_DIRECTION_LEFT
public static final TiltSensor.TiltSensorDirection TILT_SENSOR_DIRECTION_FORWARD
public static final TiltSensor.TiltSensorDirection TILT_SENSOR_DIRECTION_UNKNOWN
public static TiltSensor.TiltSensorDirection[] values()
for (TiltSensor.TiltSensorDirection c : TiltSensor.TiltSensorDirection.values()) System.out.println(c);
public static TiltSensor.TiltSensorDirection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static TiltSensor.TiltSensorDirection fromInteger(int value)
public java.lang.String toString()
toString
in class java.lang.Enum<TiltSensor.TiltSensorDirection>