Interface JsonArrayCore<JVC extends JsonValueCore<JVC>>

Type Parameters:
JVC - the type of a JSON implementation wrapper
All Superinterfaces:
Iterable<JVC>, Jsonable, JsonArrayBase<JVC>, JsonSource, JsonValueBase<JVC>, JsonValueCore<JVC>
All Known Implementing Classes:
GsonJsonArray, JacksonJsonArray, JakartaJsonArray, OrgJsonArray

public interface JsonArrayCore<JVC extends JsonValueCore<JVC>> extends JsonArrayBase<JVC>, JsonValueCore<JVC>
JsonArrayCore extends JsonArrayBase, JsonValueCore and adds few methods to make it mutable.
Author:
Wei-Ming Wu
  • Method Details

    • add

      void add(JsonSource jsonSource)
      Sets an element by given JsonSource.
      Parameters:
      jsonSource - a JsonSource
    • set

      void set(int index, JsonSource jsonSource)
      Sets an element by given index and JsonSource.
      Parameters:
      index - a position in this JSON array
      jsonSource - a JsonSource
    • remove

      JVC remove(int index)
      Removes an element by given index.
      Parameters:
      index - a position in this JSON array
      Returns:
      the removed element