Class JSONArrayList<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
com.github.tadukoo.parsing.json.JSONArrayList<T>
All Implemented Interfaces:
JSONArray<T>, JSONObject, Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess

public class JSONArrayList<T> extends ArrayList<T> implements JSONArray<T>
JSON Array List is a simple implementation of JSONArray that extends ArrayList
Since:
Alpha v.0.1
Version:
Alpha v.0.3.1
Author:
Logan Ferree (Tadukoo)
See Also:
  • Constructor Details

    • JSONArrayList

      public JSONArrayList()
      Creates an array object that's empty.
    • JSONArrayList

      public JSONArrayList(List<T> items)
      Creates an array object with the given items.
      Parameters:
      items - The list of items in the array
  • Method Details

    • getItems

      public List<T> getItems()
      Specified by:
      getItems in interface JSONArray<T>
      Returns:
      The list of items in the array