public enum DeviceMode extends Enum<DeviceMode>
Enum Constant and Description |
---|
ANALOG_INPUT |
ANALOG_OUTPUT |
DIGITAL_INPUT |
DIGITAL_OUTPUT |
PWM_OUTPUT |
Modifier and Type | Method and Description |
---|---|
static DeviceMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceMode DIGITAL_INPUT
public static final DeviceMode DIGITAL_OUTPUT
public static final DeviceMode PWM_OUTPUT
public static final DeviceMode ANALOG_INPUT
public static final DeviceMode ANALOG_OUTPUT
public static DeviceMode[] values()
for (DeviceMode c : DeviceMode.values()) System.out.println(c);
public static DeviceMode 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 © 2016–2017 mattjlewis. All rights reserved.