Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
availableTargets() |
static Target |
fromString(java.lang.String value)
Get enum value from a string.
|
java.lang.String |
toString()
Convert current enum to String value.
|
static Target |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Target[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Target ARM
public static final Target CPU
public static final Target GPU
public static final Target MIC
public static final Target FPGA
public static final Target NONE
public static Target[] values()
for (Target c : Target.values()) System.out.println(c);
public static Target 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 static java.util.List<java.lang.String> availableTargets()
public static Target fromString(java.lang.String value)
value
- Code value for the enumeration.public java.lang.String toString()
toString
in class java.lang.Enum<Target>