Interface JSONArray<T>

All Superinterfaces:
Collection<T>, Iterable<T>, JSONObject, List<T>
All Known Implementing Classes:
JSONArrayList

public interface JSONArray<T> extends JSONObject, List<T>
JSON Array represents an array of objects in JSON. It's stored as a List of Objects.
Since:
Alpha v.0.1
Version:
Alpha v.0.3.1
Author:
Logan Ferree (Tadukoo)
  • Method Details

    • getItems

      List<T> getItems()
      Returns:
      The list of items in the array
    • size

      int size()
      Specified by:
      size in interface Collection<T>
      Specified by:
      size in interface List<T>
      Returns:
      The number of items in the array
    • convertToJSON

      default String convertToJSON(JSONConverter converter)
      Converts this JSON object into an actual JSON string
      Specified by:
      convertToJSON in interface JSONObject
      Parameters:
      converter - A JSON converter used for converting sub-objects if needed
      Returns:
      A JSON string representing this object