Enum Constant and Description |
---|
DOUBLE |
FLOAT |
INT16 |
INT32 |
INT8 |
UINT16 |
UINT32 |
UINT8 |
Modifier and Type | Method and Description |
---|---|
static DataType |
fromValue(java.lang.String name)
This method gives a DataType enum object that correspod to a given datatype name
|
java.lang.String |
value()
This method gives the representation of a datatype enum object as string.
|
static DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType INT8
public static final DataType UINT8
public static final DataType INT16
public static final DataType UINT16
public static final DataType INT32
public static final DataType UINT32
public static final DataType FLOAT
public static final DataType DOUBLE
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType 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 java.lang.String value()
public static DataType fromValue(java.lang.String name)
name
- the name of a datatype. See unisens documentation for a list of supported data typesjava.lang.IllegalArgumentException
- falls the datatype is not supported or the datatype name is not right written