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