public class JsonArrays extends Object
Constructor and Description |
---|
JsonArrays() |
Modifier and Type | Method and Description |
---|---|
static javax.json.JsonArrayBuilder |
fromListNumber(org.epics.util.array.ListNumber list)
Converts the given ListNumber to a number JSON array.
|
static javax.json.JsonArrayBuilder |
fromListString(List<String> list)
Converts the given List of String to a string JSON array.
|
static javax.json.JsonArrayBuilder |
fromListTimestamp(List<org.epics.util.time.Timestamp> list)
Converts the given List of Timestamp to a JSON array.
|
static boolean |
isNumericArray(javax.json.JsonArray array)
Checks whether the array contains only numbers.
|
static boolean |
isStringArray(javax.json.JsonArray array)
Checks whether the array contains only strings.
|
static org.epics.util.array.ListByte |
toListByte(javax.json.JsonArray array)
Converts the given numeric JSON array to a ListByte.
|
static org.epics.util.array.ListDouble |
toListDouble(javax.json.JsonArray array)
Converts the given numeric JSON array to a ListDouble.
|
static org.epics.util.array.ListFloat |
toListFloat(javax.json.JsonArray array)
Converts the given numeric JSON array to a ListFloat.
|
static org.epics.util.array.ListInt |
toListInt(javax.json.JsonArray array)
Converts the given numeric JSON array to a ListInt.
|
static org.epics.util.array.ListLong |
toListLong(javax.json.JsonArray array)
Converts the given numeric JSON array to a ListLong.
|
static org.epics.util.array.ListShort |
toListShort(javax.json.JsonArray array)
Converts the given numeric JSON array to a ListShort.
|
static List<String> |
toListString(javax.json.JsonArray array)
Converts the given string JSON array to a List of Strings.
|
static List<org.epics.util.time.Timestamp> |
toListTimestamp(javax.json.JsonArray array)
Converts the given JSON array to a List of Timestamp.
|
public static boolean isNumericArray(javax.json.JsonArray array)
array
- a JSON arraypublic static boolean isStringArray(javax.json.JsonArray array)
array
- a JSON arraypublic static org.epics.util.array.ListDouble toListDouble(javax.json.JsonArray array)
array
- an array of numberspublic static org.epics.util.array.ListFloat toListFloat(javax.json.JsonArray array)
array
- an array of numberspublic static org.epics.util.array.ListLong toListLong(javax.json.JsonArray array)
array
- an array of numberspublic static org.epics.util.array.ListInt toListInt(javax.json.JsonArray array)
array
- an array of numberspublic static org.epics.util.array.ListShort toListShort(javax.json.JsonArray array)
array
- an array of numberspublic static org.epics.util.array.ListByte toListByte(javax.json.JsonArray array)
array
- an array of numberspublic static List<String> toListString(javax.json.JsonArray array)
array
- an array of stringspublic static List<org.epics.util.time.Timestamp> toListTimestamp(javax.json.JsonArray array)
array
- an arraypublic static javax.json.JsonArrayBuilder fromListString(List<String> list)
list
- a List of Stringspublic static javax.json.JsonArrayBuilder fromListTimestamp(List<org.epics.util.time.Timestamp> list)
list
- a List of Timestampspublic static javax.json.JsonArrayBuilder fromListNumber(org.epics.util.array.ListNumber list)
list
- a list of numbersCopyright © 2010–2015. All rights reserved.