Class Json.JsonObjectBuilder
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.devmode.Json.JsonBuilder<Json.JsonObjectBuilder>
-
- io.quarkus.vertx.http.runtime.devmode.Json.JsonObjectBuilder
-
- Enclosing class:
- Json
public static class Json.JsonObjectBuilder extends Json.JsonBuilder<Json.JsonObjectBuilder>
JSON object builder.
-
-
Field Summary
-
Fields inherited from class io.quarkus.vertx.http.runtime.devmode.Json.JsonBuilder
ignoreEmptyBuilders
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
boolean
has(String name)
boolean
isEmpty()
Json.JsonObjectBuilder
put(String name, Json.JsonArrayBuilder value)
Json.JsonObjectBuilder
put(String name, Json.JsonObjectBuilder value)
Json.JsonObjectBuilder
put(String name, Boolean value)
Json.JsonObjectBuilder
put(String name, Integer value)
Json.JsonObjectBuilder
put(String name, Long value)
Json.JsonObjectBuilder
put(String name, String value)
protected Json.JsonObjectBuilder
self()
-
Methods inherited from class io.quarkus.vertx.http.runtime.devmode.Json.JsonBuilder
isIgnored, isValuesEmpty
-
-
-
-
Method Detail
-
put
public Json.JsonObjectBuilder put(String name, String value)
-
put
public Json.JsonObjectBuilder put(String name, Json.JsonObjectBuilder value)
-
put
public Json.JsonObjectBuilder put(String name, Json.JsonArrayBuilder value)
-
put
public Json.JsonObjectBuilder put(String name, Boolean value)
-
put
public Json.JsonObjectBuilder put(String name, Integer value)
-
put
public Json.JsonObjectBuilder put(String name, Long value)
-
has
public boolean has(String name)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in classJson.JsonBuilder<Json.JsonObjectBuilder>
- Returns:
true
if there are no elements/properties,false
otherwise
-
build
public String build()
- Specified by:
build
in classJson.JsonBuilder<Json.JsonObjectBuilder>
- Returns:
- a string representation
-
self
protected Json.JsonObjectBuilder self()
- Specified by:
self
in classJson.JsonBuilder<Json.JsonObjectBuilder>
-
-