Class JacksonHelper

java.lang.Object
com.couchbase.client.dcp.core.utils.JacksonHelper

public class JacksonHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <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
     
    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
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.