Skip to content

Commit

Permalink
Add DataType#NUMBER
Browse files Browse the repository at this point in the history
Added the enum-like value of NUMBER which
is used by the new DataPointNumber class
to identify its type.
  • Loading branch information
alexjhawk committed May 15, 2024
1 parent 76ccc69 commit 68b8f3d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class DataType {
/** Byte assigned to represent the integer mapped string data type. */
private static final byte DATA_TYPE_INTEGER_MAPPED_STRING = 5;

/** Byte assigned to represent the number data type. */
private static final byte DATA_TYPE_NUMBER = 6;

/** Public instance of {@link DataType} representing boolean data type. */
public static final DataType BOOLEAN = new DataType(DATA_TYPE_BOOLEAN);

Expand All @@ -45,6 +48,9 @@ public class DataType {
public static final DataType INTEGER_MAPPED_STRING =
new DataType(DATA_TYPE_INTEGER_MAPPED_STRING);

/** Public instance of {@link DataType} representing number data type. */
public static final DataType NUMBER = new DataType(DATA_TYPE_NUMBER);

/** Instance data type. */
private final byte instanceDataType;

Expand Down

0 comments on commit 68b8f3d

Please sign in to comment.