Interface JsonArray

All Superinterfaces:
Iterable<JsonElement>

public interface JsonArray extends Iterable<JsonElement>
Represents an array.
Author:
Riccardo Balbo
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int i)
    Get the element at index i
    int
    Get the size of the array

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • get

      JsonElement get(int i)
      Get the element at index i
      Parameters:
      i - index
      Returns:
      the element
    • size

      int size()
      Get the size of the array
      Returns:
      the size