public class EntityCodex extends Object
ValueCodex
, but for object types.Modifier and Type | Class and Description |
---|---|
static interface |
EntityCodex.EntitySource
Abstracts the process by which EntityProxies are created.
|
Constructor and Description |
---|
EntityCodex() |
Modifier and Type | Method and Description |
---|---|
static Object |
decode(EntityCodex.EntitySource source,
Class<?> type,
Class<?> keyType,
Class<?> valueType,
Splittable split)
Map decoding follows behaviour of AutoBeanCodexImpl.MapCoder
|
static Object |
decode(EntityCodex.EntitySource source,
Class<?> type,
Class<?> elementType,
Splittable split)
Collection support is limited to value types and resolving ids.
|
static Object |
decode(EntityCodex.EntitySource source,
Class<?> type,
Class<?> elementType,
String jsonPayload)
Collection support is limited to value types and resolving ids.
|
static Splittable |
encode(EntityCodex.EntitySource source,
Object value)
Create a wire-format representation of an object.
|
public static Object decode(EntityCodex.EntitySource source, Class<?> type, Class<?> elementType, Splittable split)
public static Object decode(EntityCodex.EntitySource source, Class<?> type, Class<?> elementType, String jsonPayload)
public static Object decode(EntityCodex.EntitySource source, Class<?> type, Class<?> keyType, Class<?> valueType, Splittable split)
public static Splittable encode(EntityCodex.EntitySource source, Object value)
Copyright © 2016. All rights reserved.