Class JSONArray.Impl

  • Enclosing class:
    JSONArray

    public static class JSONArray.Impl
    extends java.lang.Object

    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 Detail

      • Impl

        public Impl()
    • Method Detail

      • fromArray

        public static JSONArray fromArray​(boolean[] array,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an boolean[].
        Parameters:
        array - An boolean[] array.
      • fromArray

        public static JSONArray fromArray​(byte[] array,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an byte[].
        Parameters:
        array - An byte[] array.
      • fromArray

        public static JSONArray fromArray​(char[] array,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an char[].
        Parameters:
        array - An char[] array.
      • fromArray

        public static JSONArray fromArray​(double[] array,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an double[].
        Parameters:
        array - An double[] array.
      • fromArray

        public static JSONArray fromArray​(java.lang.Enum e,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an Enum value.
        Parameters:
        e - A enum value.
        Throws:
        JSONException - If there is a syntax error.
      • fromArray

        public static JSONArray fromArray​(float[] array,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an float[].
        Parameters:
        array - An float[] array.
      • fromArray

        public static JSONArray fromArray​(int[] array,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an int[].
        Parameters:
        array - An int[] array.
      • fromArray

        public static JSONArray fromArray​(long[] array,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an long[].
        Parameters:
        array - An long[] array.
      • fromArray

        public static JSONArray fromArray​(java.lang.Object[] array,
                                          JsonConfig jsonConfig)
      • fromArray

        public static JSONArray fromArray​(short[] array,
                                          JsonConfig jsonConfig)
        Construct a JSONArray from an short[].
        Parameters:
        array - An short[] array.
      • fromCollection

        public static JSONArray fromCollection​(java.util.Collection collection,
                                               JsonConfig jsonConfig)
      • fromString

        public static JSONArray fromString​(java.lang.String string,
                                           JsonConfig jsonConfig)
      • processArrayDimensions

        public static void processArrayDimensions​(JSONArray jsonArray,
                                                  java.util.List dims,
                                                  int index)