public static enum UltrasonicSensor.Mode extends Enum<UltrasonicSensor.Mode>
| Enum Constant and Description |
|---|
DISTANCE
Distance mode causes the sensor to continously send out pings which allow it to calculate distances
|
LISTEN
Listen mode causes the sensor to only listen for pings
|
| Modifier and Type | Method and Description |
|---|---|
static UltrasonicSensor.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UltrasonicSensor.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UltrasonicSensor.Mode DISTANCE
public static final UltrasonicSensor.Mode LISTEN
public static UltrasonicSensor.Mode[] values()
for (UltrasonicSensor.Mode c : UltrasonicSensor.Mode.values()) System.out.println(c);
public static UltrasonicSensor.Mode 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