Enum DatapointDataTypes
- All Implemented Interfaces:
Serializable,Comparable<DatapointDataTypes>,java.lang.constant.Constable
public enum DatapointDataTypes extends Enum<DatapointDataTypes>
Enum SocketDataTypes.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description DATATYPE_BOOLThe datatype bool.DATATYPE_DOUBLEThe datatype double.DATATYPE_LONGThe datatype long.DATATYPE_STRINGThe datatype string. -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateDatapointDataTypes(String val)Instantiates a new socket data types. -
Method Summary
Modifier and Type Method Description static DatapointDataTypesfromId(String id)Get datapoint type from datapoint ID.StringgetId()Getter for the id.static DatapointDataTypesvalueOf(String name)Returns the enum constant of this type with the specified name.static DatapointDataTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATATYPE_LONG
The datatype long. -
DATATYPE_BOOL
The datatype bool. -
DATATYPE_STRING
The datatype string. -
DATATYPE_DOUBLE
The datatype double.
-
-
Field Details
-
value
The value.
-
-
Constructor Details
-
DatapointDataTypes
Instantiates a new socket data types.- Parameters:
val- the val
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getId
Getter for the id.- Returns:
- the id
-
fromId
Get datapoint type from datapoint ID.- Parameters:
id- the datapoint ID- Returns:
- the datapoint type
-