public static enum LegoDevice.DeviceFunction extends java.lang.Enum<LegoDevice.DeviceFunction>
Enum Constant and Description |
---|
DEVICE_FUNCTION_ACTS_AS_REMOTE_CONTROLLER
Device acts as a remote controller
|
DEVICE_FUNCTION_CENTRAL_MODE
Central Mode
|
DEVICE_FUNCTION_IO_PORTS
Device IO Ports mode
|
DEVICE_FUNCTION_PERIPHERAL_MODE
Peripheral Mode
|
DEVICE_FUNCTION_UNKNOWN
Unknown
|
Modifier and Type | Method and Description |
---|---|
static LegoDevice.DeviceFunction |
fromInteger(int value) |
int |
getValue() |
static LegoDevice.DeviceFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LegoDevice.DeviceFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LegoDevice.DeviceFunction DEVICE_FUNCTION_CENTRAL_MODE
public static final LegoDevice.DeviceFunction DEVICE_FUNCTION_PERIPHERAL_MODE
public static final LegoDevice.DeviceFunction DEVICE_FUNCTION_IO_PORTS
public static final LegoDevice.DeviceFunction DEVICE_FUNCTION_ACTS_AS_REMOTE_CONTROLLER
public static final LegoDevice.DeviceFunction DEVICE_FUNCTION_UNKNOWN
public static LegoDevice.DeviceFunction[] values()
for (LegoDevice.DeviceFunction c : LegoDevice.DeviceFunction.values()) System.out.println(c);
public static LegoDevice.DeviceFunction 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 LegoDevice.DeviceFunction fromInteger(int value)