public class UInt16MultiArray 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 |
|---|
UInt16MultiArray()
Create a new, empty UInt16MultiArray.
|
UInt16MultiArray(MultiArrayLayout layout,
short[] data)
Create a new UInt16MultiArray with the given layout and data.
|
| Modifier and Type | Method and Description |
|---|---|
UInt16MultiArray |
clone()
Create a clone of this UInt16MultiArray.
|
static UInt16MultiArray |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new UInt16MultiArray based on the given JSON object.
|
static UInt16MultiArray |
fromJsonString(String jsonString)
Create a new UInt16MultiArray based on the given JSON string.
|
static UInt16MultiArray |
fromMessage(Message m)
Create a new UInt16MultiArray based on the given Message.
|
short |
get(int index)
Get the data value at the given index.
|
short[] |
getData()
Get the data array.
|
MultiArrayLayout |
getLayout()
Get the layout value of this UInt16MultiArray.
|
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 UInt16MultiArray()
public UInt16MultiArray(MultiArrayLayout layout, short[] data)
layout - The specification of data layout.data - The array of data.public MultiArrayLayout getLayout()
public int size()
public short get(int index)
index - The index to get the data value of.public short[] getData()
public UInt16MultiArray clone()
public static UInt16MultiArray fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static UInt16MultiArray fromMessage(Message m)
m - The Message to parse.public static UInt16MultiArray fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.