public class UInt32MultiArray extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_DATA
The name of the data field for the message.
|
static String |
FIELD_LAYOUT
The name of the layout field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
UInt32MultiArray()
Create a new, empty UInt32MultiArray.
|
UInt32MultiArray(MultiArrayLayout layout,
int[] data)
Create a new UInt32MultiArray with the given layout and data.
|
| Modifier and Type | Method and Description |
|---|---|
UInt32MultiArray |
clone()
Create a clone of this UInt32MultiArray.
|
static UInt32MultiArray |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new UInt32MultiArray based on the given JSON object.
|
static UInt32MultiArray |
fromJsonString(String jsonString)
Create a new UInt32MultiArray based on the given JSON string.
|
static UInt32MultiArray |
fromMessage(Message m)
Create a new UInt32MultiArray based on the given Message.
|
int |
get(int index)
Get the data value at the given index.
|
int[] |
getData()
Get the data array.
|
MultiArrayLayout |
getLayout()
Get the layout value of this UInt32MultiArray.
|
int |
size()
Get the size of the array.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_LAYOUT
public static final String FIELD_DATA
public static final String TYPE
public UInt32MultiArray()
public UInt32MultiArray(MultiArrayLayout layout, int[] data)
layout - The specification of data layout.data - The array of data.public MultiArrayLayout getLayout()
public int size()
public int get(int index)
index - The index to get the data value of.public int[] getData()
public UInt32MultiArray clone()
public static UInt32MultiArray fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static UInt32MultiArray fromMessage(Message m)
m - The Message to parse.public static UInt32MultiArray fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.