public static enum Motor.MotorDirection extends java.lang.Enum<Motor.MotorDirection>
Enum Constant and Description |
---|
MOTOR_DIRECTION_BRAKING
Brake
|
MOTOR_DIRECTION_DRIFTING
Drifting (Floating)
|
MOTOR_DIRECTION_LEFT
Running left
|
MOTOR_DIRECTION_RIGHT
Running right
|
Modifier and Type | Method and Description |
---|---|
static Motor.MotorDirection |
fromInteger(int value) |
int |
getValue() |
static Motor.MotorDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Motor.MotorDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Motor.MotorDirection MOTOR_DIRECTION_DRIFTING
public static final Motor.MotorDirection MOTOR_DIRECTION_LEFT
public static final Motor.MotorDirection MOTOR_DIRECTION_RIGHT
public static final Motor.MotorDirection MOTOR_DIRECTION_BRAKING
public static Motor.MotorDirection[] values()
for (Motor.MotorDirection c : Motor.MotorDirection.values()) System.out.println(c);
public static Motor.MotorDirection 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 Motor.MotorDirection fromInteger(int value)