Package org.jobrunr.utils.mapper.jsonb
Class NullSafeJsonBuilder
- java.lang.Object
-
- org.jobrunr.utils.mapper.jsonb.NullSafeJsonBuilder
-
- All Implemented Interfaces:
javax.json.JsonObjectBuilder
public class NullSafeJsonBuilder extends java.lang.Object implements javax.json.JsonObjectBuilder
-
-
Constructor Summary
Constructors Constructor Description NullSafeJsonBuilder()
NullSafeJsonBuilder(javax.json.JsonObject object)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NullSafeJsonBuilder
add(java.lang.String name, boolean value)
NullSafeJsonBuilder
add(java.lang.String name, double value)
NullSafeJsonBuilder
add(java.lang.String name, int value)
NullSafeJsonBuilder
add(java.lang.String name, long value)
NullSafeJsonBuilder
add(java.lang.String name, java.lang.Long value)
NullSafeJsonBuilder
add(java.lang.String name, java.lang.String value)
NullSafeJsonBuilder
add(java.lang.String name, java.math.BigDecimal value)
NullSafeJsonBuilder
add(java.lang.String name, java.math.BigInteger value)
NullSafeJsonBuilder
add(java.lang.String name, java.util.UUID value)
NullSafeJsonBuilder
add(java.lang.String name, javax.json.JsonArrayBuilder builder)
NullSafeJsonBuilder
add(java.lang.String name, javax.json.JsonObjectBuilder builder)
NullSafeJsonBuilder
add(java.lang.String name, javax.json.JsonValue value)
NullSafeJsonBuilder
addNull(java.lang.String name)
javax.json.JsonObject
build()
static NullSafeJsonBuilder
nullSafeJsonObjectBuilder()
static NullSafeJsonBuilder
nullSafeJsonObjectBuilder(javax.json.bind.Jsonb jsonb, java.lang.Object object)
static NullSafeJsonBuilder
nullSafeJsonObjectBuilder(javax.json.JsonObject jsonObject)
-
-
-
Method Detail
-
nullSafeJsonObjectBuilder
public static NullSafeJsonBuilder nullSafeJsonObjectBuilder()
-
nullSafeJsonObjectBuilder
public static NullSafeJsonBuilder nullSafeJsonObjectBuilder(javax.json.bind.Jsonb jsonb, java.lang.Object object)
-
nullSafeJsonObjectBuilder
public static NullSafeJsonBuilder nullSafeJsonObjectBuilder(javax.json.JsonObject jsonObject)
-
add
public NullSafeJsonBuilder add(java.lang.String name, javax.json.JsonValue value)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, java.lang.String value)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, java.util.UUID value)
-
add
public NullSafeJsonBuilder add(java.lang.String name, java.math.BigInteger value)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, java.math.BigDecimal value)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, int value)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, java.lang.Long value)
-
add
public NullSafeJsonBuilder add(java.lang.String name, long value)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, double value)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, boolean value)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
addNull
public NullSafeJsonBuilder addNull(java.lang.String name)
- Specified by:
addNull
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, javax.json.JsonObjectBuilder builder)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
add
public NullSafeJsonBuilder add(java.lang.String name, javax.json.JsonArrayBuilder builder)
- Specified by:
add
in interfacejavax.json.JsonObjectBuilder
-
build
public javax.json.JsonObject build()
- Specified by:
build
in interfacejavax.json.JsonObjectBuilder
-
-