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