Uses of Interface
javax.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 javax.json
Methods in javax.json that return JsonArrayBuilderModifier and TypeMethodDescriptionJsonArrayBuilder.add
(boolean value) Adds aJsonValue.TRUE
orJsonValue.FALSE
value 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 JsonArrayBuilder
JsonArrayBuilder.add
(int index, boolean value) Adds aJsonValue.TRUE
orJsonValue.FALSE
value to the array at the specified position.default JsonArrayBuilder
JsonArrayBuilder.add
(int index, double value) Adds a value to the array as aJsonNumber
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.add
(int index, int value) Adds a value to the array as aJsonNumber
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.add
(int index, long value) Adds a value to the array as aJsonNumber
at the specified position.default JsonArrayBuilder
Adds a value to the array as aJsonString
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.add
(int index, BigDecimal value) Adds a value to the array as aJsonNumber
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.add
(int index, BigInteger value) Adds a value to the array as aJsonNumber
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.add
(int index, JsonArrayBuilder builder) Adds aJsonArray
from an array builder to the array at the specified position.default JsonArrayBuilder
JsonArrayBuilder.add
(int index, JsonObjectBuilder builder) Adds aJsonObject
from an object builder to the array at the specified position.default JsonArrayBuilder
Inserts a value to the array at the specified position.JsonArrayBuilder.add
(long value) Adds a value to the array as aJsonNumber
.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
.JsonArrayBuilder.add
(JsonArrayBuilder builder) Adds aJsonArray
from an array builder to the array.JsonArrayBuilder.add
(JsonObjectBuilder builder) Adds aJsonObject
from an object builder to the array.Adds a value to the array.default JsonArrayBuilder
JsonArrayBuilder.addAll
(JsonArrayBuilder builder) Adds all elements of the array in the specified array builder to the array.JsonArrayBuilder.addNull()
Adds aJsonValue.NULL
value to the array.default JsonArrayBuilder
JsonArrayBuilder.addNull
(int index) Adds aJsonValue.NULL
value to the array at the specified position.static JsonArrayBuilder
Json.createArrayBuilder()
Creates a JSON array builderstatic JsonArrayBuilder
Json.createArrayBuilder
(Collection<?> collection) Creates a JSON array builder, initialized with the content of specifiedcollection
.static JsonArrayBuilder
Json.createArrayBuilder
(JsonArray array) Creates a JSON array builder, initialized with the specified arrayJsonBuilderFactory.createArrayBuilder()
Creates aJsonArrayBuilder
instance that is used to buildJsonArray
default JsonArrayBuilder
JsonBuilderFactory.createArrayBuilder
(Collection<?> collection) Creates aJsonArrayBuilder
instance, initialized with the content of specified collection.default JsonArrayBuilder
JsonBuilderFactory.createArrayBuilder
(JsonArray array) Creates aJsonArrayBuilder
instance, initialized with an array.default JsonArrayBuilder
JsonArrayBuilder.remove
(int index) Remove the value in the array at the specified position.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, boolean value) Replaces a value in the array with aJsonValue.TRUE
orJsonValue.FALSE
value at the specified position.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, double value) Replaces a value in the array with the specified value as aJsonNumber
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, int value) Replaces a value in the array with the specified value as aJsonNumber
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, long value) Replaces a value in the array with the specified value as aJsonNumber
at the specified position.default JsonArrayBuilder
Replaces a value in the array with the specified value as aJsonString
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, BigDecimal value) Replaces a value in the array with the specified value as aJsonNumber
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, BigInteger value) Replaces a value in the array with the specified value as aJsonNumber
at the specified position.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, JsonArrayBuilder builder) Replaces a value in the array with the specified value as aJsonArray
from an array builder at the specified position.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, JsonObjectBuilder builder) Replaces a value in the array with the specified value as aJsonObject
from an object builder at the specified position.default JsonArrayBuilder
Replaces a value in the array with the specified value at the specified position.default JsonArrayBuilder
JsonArrayBuilder.setNull
(int index) Replaces a value in the array with aJsonValue.NULL
value at the specified position.Methods in javax.json with parameters of type JsonArrayBuilderModifier and TypeMethodDescriptiondefault JsonArrayBuilder
JsonArrayBuilder.add
(int index, JsonArrayBuilder builder) Adds aJsonArray
from an array builder to the array at the specified position.JsonArrayBuilder.add
(JsonArrayBuilder builder) Adds aJsonArray
from an array builder to the array.JsonObjectBuilder.add
(String name, JsonArrayBuilder builder) Adds a name/JsonArray
pair to the JSON object associated with this object builder.default JsonArrayBuilder
JsonArrayBuilder.addAll
(JsonArrayBuilder builder) Adds all elements of the array in the specified array builder to the array.default JsonArrayBuilder
JsonArrayBuilder.set
(int index, JsonArrayBuilder builder) Replaces a value in the array with the specified value as aJsonArray
from an array builder at the specified position. -
Uses of JsonArrayBuilder in javax.json.spi
Methods in javax.json.spi that return JsonArrayBuilderModifier and TypeMethodDescriptionabstract JsonArrayBuilder
JsonProvider.createArrayBuilder()
Creates a JSON array builder.JsonProvider.createArrayBuilder
(Collection<?> collection) Creates a JSON array builder, initialized with the content of specifiedcollection
.JsonProvider.createArrayBuilder
(JsonArray array) Creates a JSON array builder, initialized with the specified array. -
Uses of JsonArrayBuilder in javax.json.stream
Methods in javax.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.Collector
that implements a "group by" operation on the inputJsonValue
elements.Methods in javax.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.Collector
that implements a "group by" operation on the inputJsonValue
elements.static Collector
<JsonValue, JsonArrayBuilder, JsonArray> JsonCollectors.toJsonArray()
Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonArray
. -
Uses of JsonArrayBuilder in org.glassfish.json
Classes in org.glassfish.json that implement JsonArrayBuilderModifier and TypeClassDescription(package private) class
JsonArrayBuilder implementationFields in org.glassfish.json declared as JsonArrayBuilderMethods in org.glassfish.json that return JsonArrayBuilderModifier and TypeMethodDescriptionJsonArrayBuilderImpl.add
(boolean value) JsonArrayBuilderImpl.add
(double value) JsonArrayBuilderImpl.add
(int value) JsonArrayBuilderImpl.add
(int index, boolean value) JsonArrayBuilderImpl.add
(int index, double value) JsonArrayBuilderImpl.add
(int index, int value) JsonArrayBuilderImpl.add
(int index, long value) JsonArrayBuilderImpl.add
(int index, BigDecimal value) JsonArrayBuilderImpl.add
(int index, BigInteger value) JsonArrayBuilderImpl.add
(int index, JsonArrayBuilder builder) JsonArrayBuilderImpl.add
(int index, JsonObjectBuilder builder) JsonArrayBuilderImpl.add
(long value) JsonArrayBuilderImpl.add
(BigDecimal value) JsonArrayBuilderImpl.add
(BigInteger value) JsonArrayBuilderImpl.add
(JsonArrayBuilder builder) JsonArrayBuilderImpl.add
(JsonObjectBuilder builder) JsonArrayBuilderImpl.addAll
(JsonArrayBuilder builder) JsonArrayBuilderImpl.addNull()
JsonArrayBuilderImpl.addNull
(int index) JsonBuilderFactoryImpl.createArrayBuilder()
JsonBuilderFactoryImpl.createArrayBuilder
(Collection<?> collection) JsonBuilderFactoryImpl.createArrayBuilder
(JsonArray array) JsonProviderImpl.createArrayBuilder()
JsonProviderImpl.createArrayBuilder
(Collection<?> collection) JsonProviderImpl.createArrayBuilder
(JsonArray array) JsonArrayBuilderImpl.remove
(int index) JsonArrayBuilderImpl.set
(int index, boolean value) JsonArrayBuilderImpl.set
(int index, double value) JsonArrayBuilderImpl.set
(int index, int value) JsonArrayBuilderImpl.set
(int index, long value) JsonArrayBuilderImpl.set
(int index, BigDecimal value) JsonArrayBuilderImpl.set
(int index, BigInteger value) JsonArrayBuilderImpl.set
(int index, JsonArrayBuilder builder) JsonArrayBuilderImpl.set
(int index, JsonObjectBuilder builder) JsonArrayBuilderImpl.setNull
(int index) Methods in org.glassfish.json with parameters of type JsonArrayBuilderModifier and TypeMethodDescriptionJsonArrayBuilderImpl.add
(int index, JsonArrayBuilder builder) JsonArrayBuilderImpl.add
(JsonArrayBuilder builder) JsonObjectBuilderImpl.add
(String name, JsonArrayBuilder builder) JsonArrayBuilderImpl.addAll
(JsonArrayBuilder builder) private JsonArray
JsonParserImpl.getArray
(JsonArrayBuilder builder) JsonArrayBuilderImpl.set
(int index, JsonArrayBuilder builder)