Class TypeConvert

java.lang.Object
com.github.twitch4j.common.util.TypeConvert

public class TypeConvert extends Object
  • Constructor Details

    • TypeConvert

      public TypeConvert()
  • Method Details

    • objectToJson

      public static String objectToJson(Object object)
    • jsonToObject

      public static <T> T jsonToObject(String json, Class<T> valueType)
    • convertValue

      public static <T> T convertValue(Object fromValue, com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef)
    • convertValue

      public static <T> T convertValue(Object fromValue, Class<T> toValueType)
    • getObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      ObjectMapper