Class JSONArray.Impl
java.lang.Object
org.kordamp.json.JSONArray.Impl
- Enclosing class:
JSONArray
This class is considered private API.
It should only be used for developers extending the capabilities of the library and/or those writing custom JSON Bean/Value processors.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JSONArrayfromArray(boolean[] array, JsonConfig jsonConfig) Construct a JSONArray from an boolean[].static JSONArrayfromArray(byte[] array, JsonConfig jsonConfig) Construct a JSONArray from an byte[].static JSONArrayfromArray(char[] array, JsonConfig jsonConfig) Construct a JSONArray from an char[].static JSONArrayfromArray(double[] array, JsonConfig jsonConfig) Construct a JSONArray from an double[].static JSONArrayfromArray(float[] array, JsonConfig jsonConfig) Construct a JSONArray from an float[].static JSONArrayfromArray(int[] array, JsonConfig jsonConfig) Construct a JSONArray from an int[].static JSONArrayfromArray(long[] array, JsonConfig jsonConfig) Construct a JSONArray from an long[].static JSONArrayfromArray(short[] array, JsonConfig jsonConfig) Construct a JSONArray from an short[].static JSONArrayfromArray(Enum e, JsonConfig jsonConfig) Construct a JSONArray from an Enum value.static JSONArrayfromArray(Object[] array, JsonConfig jsonConfig) static JSONArrayfromCollection(Collection collection, JsonConfig jsonConfig) static JSONArrayfromJSONArray(JSONArray array, JsonConfig jsonConfig) static JSONArrayfromJSONString(JSONString string, JsonConfig jsonConfig) static JSONArrayfromJSONTokener(JSONTokener tokener, JsonConfig jsonConfig) static JSONArrayfromString(String string, JsonConfig jsonConfig) static voidprocessArrayDimensions(JSONArray jsonArray, List dims, int index)
-
Constructor Details
-
Impl
public Impl()
-
-
Method Details
-
fromArray
Construct a JSONArray from an boolean[].- Parameters:
array- An boolean[] array.
-
fromArray
Construct a JSONArray from an byte[].- Parameters:
array- An byte[] array.
-
fromArray
Construct a JSONArray from an char[].- Parameters:
array- An char[] array.
-
fromArray
Construct a JSONArray from an double[].- Parameters:
array- An double[] array.
-
fromArray
Construct a JSONArray from an Enum value.- Parameters:
e- A enum value.- Throws:
JSONException- If there is a syntax error.
-
fromArray
Construct a JSONArray from an float[].- Parameters:
array- An float[] array.
-
fromArray
Construct a JSONArray from an int[].- Parameters:
array- An int[] array.
-
fromArray
Construct a JSONArray from an long[].- Parameters:
array- An long[] array.
-
fromArray
-
fromArray
Construct a JSONArray from an short[].- Parameters:
array- An short[] array.
-
fromCollection
-
fromJSONArray
-
fromJSONString
-
fromJSONTokener
-
fromString
-
processArrayDimensions
-