public class Serialization extends Object
| Modifier and Type | Field and Description |
|---|---|
static java.time.format.DateTimeFormatter |
FULL_FORMATTER |
| Constructor and Description |
|---|
Serialization() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Record> |
asJSON(T toSerialize) |
static String |
asString(Collection<?> coll) |
static String |
prettyPrint(Object toSerialize) |
static <T extends Record> |
readObject(String jsonString,
Class<T> clazz) |
public static final <T extends Record> String asJSON(T toSerialize) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static final <T extends Record> T readObject(String jsonString, Class<T> clazz) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic static final String prettyPrint(Object toSerialize) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static String asString(Collection<?> coll)
Copyright © 2020. All Rights Reserved.