public class JsonUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonUtils.ListReader<T> |
static class |
JsonUtils.ValueReader<T> |
Modifier and Type | Method and Description |
---|---|
static io.netty.buffer.ByteBuf |
asBuffer(java.lang.Object o) |
static byte[] |
asBytes(java.lang.Object o) |
static java.lang.String |
asString(java.lang.Object o) |
static <T> JsonUtils.ListReader<T> |
listReader(java.lang.Class<T> type) |
static <T> T |
read(java.lang.String value,
java.lang.Class<T> type) |
static java.lang.Object |
read(java.lang.String value,
java.lang.reflect.Type type) |
static <T> JsonUtils.ValueReader<T> |
reader(java.lang.Class<T> type) |
static <T> JsonUtils.ValueReader<T> |
reader(java.lang.reflect.Type type) |
static <T> T |
readMap(java.lang.String value,
java.lang.Class<?> keyClass,
java.lang.Class<?> valueClass) |
static <T> java.util.List<T> |
readSome(java.lang.String value,
java.lang.Class<T> type) |
public static java.lang.Object read(java.lang.String value, java.lang.reflect.Type type) throws java.lang.Exception
java.lang.Exception
public static <T> JsonUtils.ValueReader<T> reader(java.lang.Class<T> type)
public static <T> JsonUtils.ValueReader<T> reader(java.lang.reflect.Type type)
public static <T> T read(java.lang.String value, java.lang.Class<T> type)
public static <T> T readMap(java.lang.String value, java.lang.Class<?> keyClass, java.lang.Class<?> valueClass)
public static <T> JsonUtils.ListReader<T> listReader(java.lang.Class<T> type)
public static <T> java.util.List<T> readSome(java.lang.String value, java.lang.Class<T> type)
public static java.lang.String asString(java.lang.Object o)
public static io.netty.buffer.ByteBuf asBuffer(java.lang.Object o)
public static byte[] asBytes(java.lang.Object o)
Copyright © 2021. All Rights Reserved.