public static enum Motor.Port extends Enum<Motor.Port>
Modifier and Type | Method and Description |
---|---|
static Motor.Port |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Motor.Port[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Motor.Port A
public static final Motor.Port B
public static final Motor.Port C
public static final Motor.Port D
public static Motor.Port[] values()
for (Motor.Port c : Motor.Port.values()) System.out.println(c);
public static Motor.Port 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 null