public class TypeConvert extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
configureMapper(java.util.function.Consumer<com.fasterxml.jackson.databind.ObjectMapper> action) |
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 void |
overrideMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) |
static byte[] |
toByteArray(Object value) |
static String |
toJson(Object value) |
public static void overrideMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
public static void configureMapper(java.util.function.Consumer<com.fasterxml.jackson.databind.ObjectMapper> action)
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.