Class JSONArray

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.List<java.lang.Object>, java.util.RandomAccess, JSONCompoundType

    public class JSONArray
    extends java.util.ArrayList<java.lang.Object>
    implements JSONCompoundType
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONArray()  
    • Constructor Detail

      • JSONArray

        public JSONArray()
    • Method Detail

      • toString

        public java.lang.String toString()
        Description copied from interface: JSONCompoundType
        Convert to string using the default string formatter.
        Specified by:
        toString in interface JSONCompoundType
        Overrides:
        toString in class java.util.AbstractCollection<java.lang.Object>
        See Also:
        JSONFormatter
      • getObject

        public JSONObject getObject​(int index)
      • getArray

        public JSONArray getArray​(int index)
      • getString

        public java.lang.String getString​(int index)
      • getString

        public java.lang.String getString​(int index,
                                          java.lang.String defaultValue)
      • getDouble

        public java.lang.Double getDouble​(int index)
      • getDouble

        public java.lang.Double getDouble​(int index,
                                          java.lang.Double defaultValue)
      • getLong

        public java.lang.Long getLong​(int index)
      • getLong

        public java.lang.Long getLong​(int index,
                                      java.lang.Long defaultValue)
      • getBoolean

        public java.lang.Boolean getBoolean​(int index)
      • getBoolean

        public java.lang.Boolean getBoolean​(int index,
                                            java.lang.Boolean defaultValue)