Class JSONList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess

public class JSONList extends ArrayList<Object>
Represents a list which can be serialized to JSON and deserialized back to this form, assuming all of the values it stores are serializable
See Also:
  • Constructor Details

    • JSONList

      public JSONList()
  • Method Details

    • getInt

      public Integer getInt(int key)
    • getBoolean

      public Boolean getBoolean(int key)
    • getLong

      public Long getLong(int key)
    • getDouble

      public Double getDouble(int key)
    • getList

      public JSONList getList(int key)
    • getMap

      public JSONMap getMap(int key)
    • getString

      public String getString(int key)
    • cast

      public <T> List<T> cast(Class<T> clazz)
    • toString

      public String toString()
      Overrides:
      toString in class AbstractCollection<Object>
      Returns:
      A JSON string representing this JSONList