Enum SerdeUtils

java.lang.Object
java.lang.Enum<SerdeUtils>
com.arangodb.internal.serde.SerdeUtils
All Implemented Interfaces:
Serializable, Comparable<SerdeUtils>

public enum SerdeUtils extends Enum<SerdeUtils>
  • Enum Constant Details

    • INSTANCE

      public static final SerdeUtils INSTANCE
  • Method Details

    • values

      public static SerdeUtils[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SerdeUtils valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • constructListType

      public static Type constructListType(Class<?> clazz)
    • constructParametricType

      public static Type constructParametricType(Class<?> rawType, Type... rawArgs)
    • convertToType

      public static Type convertToType(com.fasterxml.jackson.databind.JavaType javaType)
    • parseJson

      public com.fasterxml.jackson.databind.JsonNode parseJson(String json)
      Parse a JSON string.
      Parameters:
      json - JSON string to parse
      Returns:
      root of the parsed tree
    • writeJson

      public String writeJson(com.fasterxml.jackson.databind.JsonNode data)
      Parameters:
      data - JsonNode
      Returns:
      JSON string