public interface JsonObjectBuilder
JsonObjects.
Instances are not thread safe.
Calling any of those methods with either the name or value param as null
will result in a NullPointerException| Modifier and Type | Method and Description |
|---|---|
JsonObjectBuilder |
add(String name,
BigDecimal value)
Add the given BigDecimal value to the JsonObject to be created.
|
JsonObjectBuilder |
add(String name,
BigInteger value)
Add the given BigInteger value to the JsonObject to be created.
|
JsonObjectBuilder |
add(String name,
boolean value)
Add the given boolean value to the JsonObject to be created.
|
JsonObjectBuilder |
add(String name,
double value)
Add the given double value to the JsonObject to be created.
|
JsonObjectBuilder |
add(String name,
int value)
Add the given int value to the JsonObject to be created.
|
JsonObjectBuilder |
add(String name,
JsonArrayBuilder builder)
Use the given
JsonArrayBuilder to create a JsonArray which will be
added to the JsonObject to be created by this builder. |
JsonObjectBuilder |
add(String name,
JsonObjectBuilder builder)
Use the given
JsonObjectBuilder to create a JsonObject which will be
added to the JsonObject to be created by this builder. |
JsonObjectBuilder |
add(String name,
JsonValue value)
Add the given JsonValue value to the JsonObject to be created.
|
JsonObjectBuilder |
add(String name,
long value)
Add the given long value to the JsonObject to be created.
|
JsonObjectBuilder |
add(String name,
String value)
Add the given String value to the JsonObject to be created.
|
default JsonObjectBuilder |
addAll(JsonObjectBuilder builder)
Add all of the attributes of the given
JsonObjectBuilder to the current one |
JsonObjectBuilder |
addNull(String name)
Add a
JsonValue.NULL value to the JsonObject to be created. |
JsonObject |
build() |
default JsonObjectBuilder |
remove(String name)
Remove the attribute with the given name from the builder.
|
JsonObjectBuilder add(String name, JsonValue value)
name - the JSON attribute namevalue - the JsonValue to addJsonObjectBuilder add(String name, String value)
name - the JSON attribute namevalue - the String value to addJsonObjectBuilder add(String name, BigInteger value)
name - the JSON attribute namevalue - the BigInteger value to addJsonObjectBuilder add(String name, BigDecimal value)
name - the JSON attribute namevalue - the BigDecimal value to addJsonObjectBuilder add(String name, int value)
name - the JSON attribute namevalue - to addJsonObjectBuilder add(String name, long value)
name - the JSON attribute namevalue - to addJsonObjectBuilder add(String name, double value)
name - the JSON attribute namevalue - to addJsonObjectBuilder add(String name, boolean value)
name - the JSON attribute namevalue - to addJsonObjectBuilder addNull(String name)
JsonValue.NULL value to the JsonObject to be created.
If a value with that name already exists it will be replaced by the null value.name - the JSON attribute nameJsonObjectBuilder add(String name, JsonObjectBuilder builder)
JsonObjectBuilder to create a JsonObject which will be
added to the JsonObject to be created by this builder.
If a value with that name already exists it will be replaced by the new value.name - the JSON attribute namebuilder - for creating the JsonObject to addJsonObjectBuilder add(String name, JsonArrayBuilder builder)
JsonArrayBuilder to create a JsonArray which will be
added to the JsonObject to be created by this builder.
If a value with that name already exists it will be replaced by the new value.name - the JSON attribute namebuilder - for creating the JsonArray to addJsonObject build()
JsonObject based on the added values.default JsonObjectBuilder addAll(JsonObjectBuilder builder)
JsonObjectBuilder to the current onedefault JsonObjectBuilder remove(String name)
Copyright © 2010 - 2020 Adobe. All Rights Reserved