public static enum LegoDevice.DeviceCategory extends java.lang.Enum<LegoDevice.DeviceCategory>
Enum Constant and Description |
---|
DEVICE_CATEGORY_DUPLO
Duplo
|
DEVICE_CATEGORY_MINDSTORMS
MindStorms
|
DEVICE_CATEGORY_SYSTEM
System
|
DEVICE_CATEGORY_TECHNIC
Technic
|
DEVICE_CATEGORY_UNKNOWN
Unknown
|
DEVICE_CATEGORY_WEDO
WeDo
|
Modifier and Type | Method and Description |
---|---|
static LegoDevice.DeviceCategory |
fromInteger(int value) |
int |
getValue() |
static LegoDevice.DeviceCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LegoDevice.DeviceCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LegoDevice.DeviceCategory DEVICE_CATEGORY_WEDO
public static final LegoDevice.DeviceCategory DEVICE_CATEGORY_DUPLO
public static final LegoDevice.DeviceCategory DEVICE_CATEGORY_SYSTEM
public static final LegoDevice.DeviceCategory DEVICE_CATEGORY_TECHNIC
public static final LegoDevice.DeviceCategory DEVICE_CATEGORY_MINDSTORMS
public static final LegoDevice.DeviceCategory DEVICE_CATEGORY_UNKNOWN
public static LegoDevice.DeviceCategory[] values()
for (LegoDevice.DeviceCategory c : LegoDevice.DeviceCategory.values()) System.out.println(c);
public static LegoDevice.DeviceCategory 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.DeviceCategory fromInteger(int value)