public final class JsonArrayNodeBuilder extends java.lang.Object implements JsonNodeBuilder<JsonNode>
JsonNodes representing JSON arrays.| Modifier and Type | Method and Description |
|---|---|
JsonNode |
build()
Generates an instance of
T, as specified by calls to any other methods provided by implementations of JsonNodeBuilder. |
JsonArrayNodeBuilder |
withElement(JsonNodeBuilder<?> elementBuilder)
Adds the given element to the array that will be built.
|
public JsonArrayNodeBuilder withElement(JsonNodeBuilder<?> elementBuilder)
elementBuilder - a builder for the element to add to the array.public JsonNode build()
JsonNodeBuilderT, as specified by calls to any other methods provided by implementations of JsonNodeBuilder.build in interface JsonNodeBuilder<JsonNode>T.