Package org.eclipse.ditto.json
Interface JsonValueContainer<T>
- All Superinterfaces:
Iterable<T>
- All Known Subinterfaces:
JsonArray
,JsonArrayBuilder
,JsonObject
,JsonObjectBuilder
Abstract representation of a data structure which somehow holds JSON values.
-
Method Summary
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
Returns a sequentialStream
with the values of this container as its source.- Returns:
- a sequential stream of the values of this container.
-