Package net.bitnine.agensgraph.util
Class JsonbUtil
java.lang.Object
net.bitnine.agensgraph.util.JsonbUtil
This class provides static methods to create Jsonb values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Jsonbcreate(boolean value) Returns a Jsonb of the given boolean value.static Jsonbcreate(double value) Returns a Jsonb of the given double value.static Jsonbcreate(int value) Returns a Jsonb of the given integer value.static Jsonbcreate(long value) Returns a Jsonb of the given long value.static JsonbReturns a Jsonb of the given string value.static JsonbReturns a Jsonb of an empty array.static JsonbcreateArray(Iterable<?> values) Returns a Jsonb of an array that has elements from the given iterable.static JsonbcreateArray(Object... values) Returns a Jsonb of an array of the given objects.static JsonbcreateArray(String... values) Returns a Jsonb of an array of the given strings.static JsonbArrayBuilderReturns a JsonbArrayBuilder to build an array.static JsonbReturns a Jsonb of null value.static JsonbReturns a Jsonb of an empty object.static JsonbcreateObject(Map<String, ?> map) Returns a Jsonb of an object that has properties from the given map.static JsonbObjectBuilderReturns a JsonbObjectBuilder to builder an object.
-
Method Details
-
create
Returns a Jsonb of the given string value.- Parameters:
value- the given value- Returns:
- a Jsonb of the string value
-
create
Returns a Jsonb of the given integer value.- Parameters:
value- the given value- Returns:
- a Jsonb of the integer value
-
create
Returns a Jsonb of the given long value.- Parameters:
value- the given value- Returns:
- a Jsonb of the long value
-
create
Returns a Jsonb of the given double value.- Parameters:
value- the given value- Returns:
- a Jsonb of the double value
-
create
Returns a Jsonb of the given boolean value.- Parameters:
value- the given value- Returns:
- a Jsonb of the boolean value
-
createNull
Returns a Jsonb of null value.- Returns:
- a Jsonb of null value
-
createArrayBuilder
Returns a JsonbArrayBuilder to build an array.- Returns:
- a JsonbArrayBuilder to build an array
-
createArray
Returns a Jsonb of an empty array.- Returns:
- a Jsonb of an empty array
-
createArray
Returns a Jsonb of an array of the given strings.- Parameters:
values- a list of the given strings- Returns:
- a jsonb of an array of the strings
-
createArray
Returns a Jsonb of an array of the given objects.- Parameters:
values- a list of the given objects- Returns:
- a jsonb of an array of the strings
-
createArray
Returns a Jsonb of an array that has elements from the given iterable.- Parameters:
values- a list of the given iterable- Returns:
- a jsonb of an array of the iterable
-
createObjectBuilder
Returns a JsonbObjectBuilder to builder an object.- Returns:
- a JsonbObjectBuilder to builder an object
-
createObject
Returns a Jsonb of an empty object.- Returns:
- a Jsonb of an empty object
-
createObject
Returns a Jsonb of an object that has properties from the given map.- Parameters:
map- the given map- Returns:
- a Jsonb of an object that has properties from the given map
-