Interface JsonValueContainer<T>

All Superinterfaces:
Iterable<T>
All Known Subinterfaces:
JsonArray, JsonArrayBuilder, JsonObject, JsonObjectBuilder

public interface JsonValueContainer<T> extends Iterable<T>
Abstract representation of a data structure which somehow holds JSON values.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the size of this container, i.
    boolean
    Indicates whether this container is empty.
    Returns a sequential Stream with the values of this container as its source.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • isEmpty

      boolean isEmpty()
      Indicates whether this container is empty.
      Returns:
      true if this container does not contain any values, false else.
    • getSize

      int getSize()
      Returns the size of this container, i. e. the number of contained values.
      Returns:
      the number of values this container contains.
    • stream

      Stream<T> stream()
      Returns a sequential Stream with the values of this container as its source.
      Returns:
      a sequential stream of the values of this container.