public class Int16 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 |
|---|
Int16()
Create a new Int16 with a default of 0.
|
Int16(short data)
Create a new Int16 with the given data value.
|
| Modifier and Type | Method and Description |
|---|---|
Int16 |
clone()
Create a clone of this Int16.
|
static Int16 |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new Int16 based on the given JSON object.
|
static Int16 |
fromJsonString(String jsonString)
Create a new Int16 based on the given JSON string.
|
static Int16 |
fromMessage(Message m)
Create a new Int16 based on the given Message.
|
short |
getData()
Get the data value of this short.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_DATA
public static final String TYPE
public Int16()
public Int16(short data)
data - The data value of the short.public short getData()
public static Int16 fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static Int16 fromMessage(Message m)
m - The Message to parse.public static Int16 fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.