public class Float32 extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_DATA
The name of the data field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
Float32()
Create a new Float32 with a default of 0.
|
Float32(float data)
Create a new Float32 with the given data value.
|
| Modifier and Type | Method and Description |
|---|---|
Float32 |
clone()
Create a clone of this Float32.
|
static Float32 |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new Float32 based on the given JSON object.
|
static Float32 |
fromJsonString(String jsonString)
Create a new Float32 based on the given JSON string.
|
static Float32 |
fromMessage(Message m)
Create a new Float32 based on the given Message.
|
float |
getData()
Get the data value of this float.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_DATA
public static final String TYPE
public Float32()
public Float32(float data)
data - The data value of the float.public float getData()
public static Float32 fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static Float32 fromMessage(Message m)
m - The Message to parse.public static Float32 fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.