类 JSONArray


  • public class JSONArray
    extends 
    已过时。
    JSONArray.
    • 构造器概要

      构造器 
      构造器 说明
      JSONArray()
      已过时。
       
    • 方法概要

      所有方法 实例方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      void  ele)
      已过时。
      add item.
      void [] eles)
      已过时。
      add items.
      void <?> c)
      已过时。
      add items.
      get​(int index)
      已过时。
      get.
      JSONArray getArray​(int index)
      已过时。
      get JSONArray value.
      boolean getBoolean​(int index, boolean def)
      已过时。
      get boolean value.
      double getDouble​(int index, double def)
      已过时。
      get double value.
      float getFloat​(int index, float def)
      已过时。
      get float value.
      int getInt​(int index, int def)
      已过时。
      get int value.
      long getLong​(int index, long def)
      已过时。
      get long value.
      JSONObject getObject​(int index)
      已过时。
      get JSONObject value.
      getString​(int index)
      已过时。
      get string value.
      int length()
      已过时。
      get array length.
      void writeJSON​(JSONConverter jc, JSONWriter jb, boolean writeClass)
      已过时。
      write json.
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 构造器详细资料

      • JSONArray

        public JSONArray()
        已过时。
    • 方法详细资料

      • get

        public  get​(int index)
        已过时。
        get.
        参数:
        index - index.
        返回:
        boolean or long or double or String or JSONArray or JSONObject or null.
      • getBoolean

        public boolean getBoolean​(int index,
                                  boolean def)
        已过时。
        get boolean value.
        参数:
        index - index.
        def - default value.
        返回:
        value or default value.
      • getInt

        public int getInt​(int index,
                          int def)
        已过时。
        get int value.
        参数:
        index - index.
        def - default value.
        返回:
        value or default value.
      • getLong

        public long getLong​(int index,
                            long def)
        已过时。
        get long value.
        参数:
        index - index.
        def - default value.
        返回:
        value or default value.
      • getFloat

        public float getFloat​(int index,
                              float def)
        已过时。
        get float value.
        参数:
        index - index.
        def - default value.
        返回:
        value or default value.
      • getDouble

        public double getDouble​(int index,
                                double def)
        已过时。
        get double value.
        参数:
        index - index.
        def - default value.
        返回:
        value or default value.
      • getString

        public  getString​(int index)
        已过时。
        get string value.
        参数:
        index - index.
        返回:
        value or default value.
      • getArray

        public JSONArray getArray​(int index)
        已过时。
        get JSONArray value.
        参数:
        index - index.
        返回:
        value or default value.
      • getObject

        public JSONObject getObject​(int index)
        已过时。
        get JSONObject value.
        参数:
        index - index.
        返回:
        value or default value.
      • length

        public int length()
        已过时。
        get array length.
        返回:
        length.
      • add

        public void add​( ele)
        已过时。
        add item.
      • addAll

        public void addAll​([] eles)
        已过时。
        add items.
      • addAll

        public void addAll​(<?> c)
        已过时。
        add items.
      • writeJSON

        public void writeJSON​(JSONConverter jc,
                              JSONWriter jb,
                              boolean writeClass)
                       throws 
        已过时。
        write json.
        参数:
        jc - json converter
        jb - json builder.
        抛出: