Package com.github.twitch4j.common.util
Class TypeConvert
java.lang.Object
com.github.twitch4j.common.util.TypeConvert
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
convertValue
(Object fromValue, com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef) static <T> T
convertValue
(Object fromValue, Class<T> toValueType) static com.fasterxml.jackson.databind.ObjectMapper
ObjectMapperstatic <T> T
jsonToObject
(String json, Class<T> valueType) static String
objectToJson
(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
-