public final class JsonArrayNodeBuilder extends java.lang.Object implements JsonNodeBuilder<JsonNode>
JsonNode
s 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()
JsonNodeBuilder
T
, as specified by calls to any other methods provided by implementations of JsonNodeBuilder
.build
in interface JsonNodeBuilder<JsonNode>
T
.