Package com.github.twitch4j.common.util
Class TypeConvert
java.lang.Object
com.github.twitch4j.common.util.TypeConvert
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TconvertValue(Object fromValue, com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef) static <T> TconvertValue(Object fromValue, Class<T> toValueType) static com.fasterxml.jackson.databind.ObjectMapperObjectMapperstatic <T> TjsonToObject(String json, Class<T> valueType) static StringobjectToJson(Object object)
-
Constructor Details
-
TypeConvert
public TypeConvert()
-
-
Method Details
-
objectToJson
-
jsonToObject
-
convertValue
public static <T> T convertValue(Object fromValue, com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef) -
convertValue
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()ObjectMapper
-