Uses of Interface
jakarta.json.JsonArrayBuilder
Packages that use JsonArrayBuilder
Package
Description
Provides an object model API to process JSON.
Service Provider Interface (SPI) to plug in implementations for
JSON processing objects.
Provides a streaming API to parse and generate
JSON.
-
Uses of JsonArrayBuilder in jakarta.json
Methods in jakarta.json that return JsonArrayBuilderModifier and TypeMethodDescriptionJsonArrayBuilder.add(boolean value) Adds aJsonValue.TRUEorJsonValue.FALSEvalue to the array.JsonArrayBuilder.add(double value) Adds a value to the array as aJsonNumber.JsonArrayBuilder.add(int value) Adds a value to the array as aJsonNumber.default JsonArrayBuilderJsonArrayBuilder.add(int index, boolean value) Adds aJsonValue.TRUEorJsonValue.FALSEvalue to the array at the specified position.default JsonArrayBuilderJsonArrayBuilder.add(int index, double value) Adds a value to the array as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.add(int index, int value) Adds a value to the array as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.add(int index, long value) Adds a value to the array as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.add(int index, JsonArrayBuilder builder) Adds aJsonArrayfrom an array builder to the array at the specified position.default JsonArrayBuilderJsonArrayBuilder.add(int index, JsonObjectBuilder builder) Adds aJsonObjectfrom an object builder to the array at the specified position.default JsonArrayBuilderInserts a value to the array at the specified position.default JsonArrayBuilderAdds a value to the array as aJsonStringat the specified position.default JsonArrayBuilderJsonArrayBuilder.add(int index, BigDecimal value) Adds a value to the array as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.add(int index, BigInteger value) Adds a value to the array as aJsonNumberat the specified position.JsonArrayBuilder.add(long value) Adds a value to the array as aJsonNumber.JsonArrayBuilder.add(JsonArrayBuilder builder) Adds aJsonArrayfrom an array builder to the array.JsonArrayBuilder.add(JsonObjectBuilder builder) Adds aJsonObjectfrom an object builder to the array.Adds a value to the array.Adds a value to the array as aJsonString.JsonArrayBuilder.add(BigDecimal value) Adds a value to the array as aJsonNumber.JsonArrayBuilder.add(BigInteger value) Adds a value to the array as aJsonNumber.default JsonArrayBuilderJsonArrayBuilder.addAll(JsonArrayBuilder builder) Adds all elements of the array in the specified array builder to the array.JsonArrayBuilder.addNull()Adds aJsonValue.NULLvalue to the array.default JsonArrayBuilderJsonArrayBuilder.addNull(int index) Adds aJsonValue.NULLvalue to the array at the specified position.static JsonArrayBuilderJson.createArrayBuilder()Creates a JSON array builderstatic JsonArrayBuilderJson.createArrayBuilder(JsonArray array) Creates a JSON array builder, initialized with the specified arraystatic JsonArrayBuilderJson.createArrayBuilder(Collection<?> collection) Creates a JSON array builder, initialized with the content of specifiedcollection.JsonBuilderFactory.createArrayBuilder()Creates aJsonArrayBuilderinstance that is used to buildJsonArraydefault JsonArrayBuilderJsonBuilderFactory.createArrayBuilder(JsonArray array) Creates aJsonArrayBuilderinstance, initialized with an array.default JsonArrayBuilderJsonBuilderFactory.createArrayBuilder(Collection<?> collection) Creates aJsonArrayBuilderinstance, initialized with the content of specified collection.default JsonArrayBuilderJsonArrayBuilder.remove(int index) Remove the value in the array at the specified position.default JsonArrayBuilderJsonArrayBuilder.set(int index, boolean value) Replaces a value in the array with aJsonValue.TRUEorJsonValue.FALSEvalue at the specified position.default JsonArrayBuilderJsonArrayBuilder.set(int index, double value) Replaces a value in the array with the specified value as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.set(int index, int value) Replaces a value in the array with the specified value as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.set(int index, long value) Replaces a value in the array with the specified value as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.set(int index, JsonArrayBuilder builder) Replaces a value in the array with the specified value as aJsonArrayfrom an array builder at the specified position.default JsonArrayBuilderJsonArrayBuilder.set(int index, JsonObjectBuilder builder) Replaces a value in the array with the specified value as aJsonObjectfrom an object builder at the specified position.default JsonArrayBuilderReplaces a value in the array with the specified value at the specified position.default JsonArrayBuilderReplaces a value in the array with the specified value as aJsonStringat the specified position.default JsonArrayBuilderJsonArrayBuilder.set(int index, BigDecimal value) Replaces a value in the array with the specified value as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.set(int index, BigInteger value) Replaces a value in the array with the specified value as aJsonNumberat the specified position.default JsonArrayBuilderJsonArrayBuilder.setNull(int index) Replaces a value in the array with aJsonValue.NULLvalue at the specified position.Methods in jakarta.json with parameters of type JsonArrayBuilderModifier and TypeMethodDescriptiondefault JsonArrayBuilderJsonArrayBuilder.add(int index, JsonArrayBuilder builder) Adds aJsonArrayfrom an array builder to the array at the specified position.JsonArrayBuilder.add(JsonArrayBuilder builder) Adds aJsonArrayfrom an array builder to the array.JsonObjectBuilder.add(String name, JsonArrayBuilder builder) Adds a name/JsonArraypair to the JSON object associated with this object builder.default JsonArrayBuilderJsonArrayBuilder.addAll(JsonArrayBuilder builder) Adds all elements of the array in the specified array builder to the array.default JsonArrayBuilderJsonArrayBuilder.set(int index, JsonArrayBuilder builder) Replaces a value in the array with the specified value as aJsonArrayfrom an array builder at the specified position. -
Uses of JsonArrayBuilder in jakarta.json.spi
Methods in jakarta.json.spi that return JsonArrayBuilderModifier and TypeMethodDescriptionabstract JsonArrayBuilderJsonProvider.createArrayBuilder()Creates a JSON array builder.JsonProvider.createArrayBuilder(JsonArray array) Creates a JSON array builder, initialized with the specified array.JsonProvider.createArrayBuilder(Collection<?> collection) Creates a JSON array builder, initialized with the content of specifiedcollection. -
Uses of JsonArrayBuilder in jakarta.json.stream
Methods in jakarta.json.stream with type parameters of type JsonArrayBuilderModifier and TypeMethodDescriptionstatic <T extends JsonArrayBuilder>
Collector<JsonValue,Map<String, T>, JsonObject> JsonCollectors.groupingBy(Function<JsonValue, String> classifier, Collector<JsonValue, T, JsonArray> downstream) Constructs ajava.util.stream.Collectorthat implements a "group by" operation on the inputJsonValueelements.Methods in jakarta.json.stream that return types with arguments of type JsonArrayBuilderModifier and TypeMethodDescriptionstatic Collector<JsonValue,Map<String, JsonArrayBuilder>, JsonObject> JsonCollectors.groupingBy(Function<JsonValue, String> classifier) Constructs ajava.util.stream.Collectorthat implements a "group by" operation on the inputJsonValueelements.static Collector<JsonValue,JsonArrayBuilder, JsonArray> JsonCollectors.toJsonArray()Constructs ajava.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonArray.