public class ObjectMappers extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
checkNotNullItems(List<T> list,
String fieldName) |
static <K,V> Map<K,V> |
checkNotNullValuesForProperty(Map<K,V> map,
String fieldName) |
static <T> void |
checkRequiredProperty(T reference,
String fieldName) |
static com.fasterxml.jackson.databind.ObjectMapper |
create() |
static com.fasterxml.jackson.databind.JsonNode |
getRequiredChildNode(com.fasterxml.jackson.databind.JsonNode parentNode,
String fieldName) |
static <T> List<T> |
nullToEmpty(List<T> list) |
static <K,V> Map<K,V> |
nullToEmpty(Map<K,V> map) |
static boolean |
nullToFalse(Boolean value) |
static <T> List<T> |
orEmpty(List<T> list,
String fieldName) |
static <T> T |
readRequiredValue(com.fasterxml.jackson.databind.ObjectMapper mapper,
String content,
Class<T> valueType) |
public static com.fasterxml.jackson.databind.ObjectMapper create()
public static <T> T readRequiredValue(com.fasterxml.jackson.databind.ObjectMapper mapper,
String content,
Class<T> valueType)
throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.JsonNode getRequiredChildNode(com.fasterxml.jackson.databind.JsonNode parentNode,
String fieldName)
throws IOException
IOExceptionpublic static <T> void checkRequiredProperty(T reference,
String fieldName)
throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingExceptionpublic static <T> List<T> orEmpty(@Nullable List<T> list, String fieldName) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingExceptionpublic static <T> List<T> checkNotNullItems(List<T> list, String fieldName) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingExceptionpublic static <K,V> Map<K,V> checkNotNullValuesForProperty(Map<K,V> map, String fieldName) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingExceptionCopyright © 2011–2015 Glowroot contributors. All rights reserved.