public class TypeConvert extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
configureOrReplaceMapper(java.util.function.Function<com.fasterxml.jackson.databind.ObjectMapper,com.fasterxml.jackson.databind.ObjectMapper> configureOrReplace) |
static <T> T |
convertValue(Object value,
Class<T> type) |
static Object |
convertValue(Object value,
Type type) |
static <T> T |
convertValue(Object value,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
static <T> T |
fromJson(String json,
Class<T> type) |
static <T> T |
fromJson(String json,
Type type) |
static <T> T |
fromJson(String json,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
static byte[] |
toByteArray(Object value) |
static String |
toJson(Object value) |
public static void configureOrReplaceMapper(java.util.function.Function<com.fasterxml.jackson.databind.ObjectMapper,com.fasterxml.jackson.databind.ObjectMapper> configureOrReplace)
public static <T> T fromJson(String json, com.fasterxml.jackson.core.type.TypeReference<T> type)
public static <T> T convertValue(Object value, com.fasterxml.jackson.core.type.TypeReference<T> type)
public static byte[] toByteArray(Object value)
Copyright © 2014. All Rights Reserved.