Enum Device.Type
- java.lang.Object
-
- java.lang.Enum<Device.Type>
-
- fi.tut.mei.capabilityQueryLib.model.Device.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Device.Type>
- Enclosing class:
- Device
public static enum Device.Type extends Enum<Device.Type>
Represents different device types: individual device, blueprint or device combination- Author:
- hylli
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLUEPRINT
DEVICE_COMBINATION
INDIVIDUAL_DEVICE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Device.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Device.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLUEPRINT
public static final Device.Type BLUEPRINT
-
DEVICE_COMBINATION
public static final Device.Type DEVICE_COMBINATION
-
INDIVIDUAL_DEVICE
public static final Device.Type INDIVIDUAL_DEVICE
-
-
Method Detail
-
values
public static Device.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Device.Type c : Device.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Device.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-