Class JacksonHelper
java.lang.Object
com.couchbase.client.dcp.core.utils.JacksonHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
convertValue
(Object from, com.couchbase.client.core.deps.com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef) static com.couchbase.client.core.deps.com.fasterxml.jackson.databind.ObjectReader
reader()
static com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode
readObject
(byte[] json) static com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode
readObject
(String json) static <T> List
<T> transform
(com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ArrayNode array, Function<com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode, ? extends T> transformer) Returns a list where each element is the result of applying the given transform to the corresponding element of the ArrayNode.
-
Constructor Details
-
JacksonHelper
public JacksonHelper()
-
-
Method Details
-
readObject
public static com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode readObject(byte[] json) -
readObject
public static com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode readObject(String json) -
convertValue
public static <T> T convertValue(Object from, com.couchbase.client.core.deps.com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef) -
reader
public static com.couchbase.client.core.deps.com.fasterxml.jackson.databind.ObjectReader reader() -
transform
public static <T> List<T> transform(com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ArrayNode array, Function<com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode, ? extends T> transformer) Returns a list where each element is the result of applying the given transform to the corresponding element of the ArrayNode.
-