public class CoreJsonValue extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
CoreJsonValue(com.fasterxml.jackson.databind.JsonNode value)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> CoreJsonValue |
fromArray(List<T> values)
Initializes JsonValue instance with provided list of values.
|
static CoreJsonValue |
fromBoolean(Boolean value)
Initializes JsonValue instance with provided value.
|
static CoreJsonValue |
fromDouble(Double value)
Initializes JsonValue instance with provided value.
|
static CoreJsonValue |
fromInteger(Integer value)
Initializes JsonValue instance with provided value.
|
static CoreJsonValue |
fromLong(Long value)
Initializes JsonValue instance with provided value.
|
static CoreJsonValue |
fromObject(Object value)
Initializes JsonValue instance with provided value.
|
static CoreJsonValue |
fromString(String value)
Initializes JsonValue instance with provided value.
|
Object |
getStoredObject()
Getter for stored JSON object.
|
String |
toString()
Converts the JSON into string.
|
protected CoreJsonValue(com.fasterxml.jackson.databind.JsonNode value)
value - The JSON of type JsonNode.public static CoreJsonValue fromString(String value)
value - The string value to initialize with.CoreJsonValue instance.public static CoreJsonValue fromBoolean(Boolean value)
value - The boolean value to initialize with.CoreJsonValue instance.public static CoreJsonValue fromInteger(Integer value)
value - The integer value to initialize with.CoreJsonValue instance.public static CoreJsonValue fromLong(Long value)
value - The long value to initialize with.CoreJsonValue instance.public static CoreJsonValue fromDouble(Double value)
value - The double value to initialize with.CoreJsonValue instance.public static CoreJsonValue fromObject(Object value)
value - The double value to initialize with.CoreJsonValue instance.public static <T> CoreJsonValue fromArray(List<T> values)
T - The list type.values - The list of values of given type.CoreJsonValue instance.public Object getStoredObject()
Copyright © 2023. All rights reserved.