public class ValueCodex extends Object
Constructor and Description |
---|
ValueCodex() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDecode(Class<?> clazz)
Returns true if ValueCodex can operate on values of the given type.
|
static <T> T |
decode(Class<T> clazz,
Splittable split) |
static <T> T |
decode(Class<T> clazz,
String string)
Deprecated.
use
decode(Class, Splittable) instead. |
static Splittable |
encode(Class<?> clazz,
Object obj)
Encode a value object when the wire format type is known.
|
static Splittable |
encode(Object obj) |
static Set<Class<?>> |
getAllValueTypes()
Return all Value types that can be processed by the ValueCodex.
|
static Object |
getUninitializedFieldValue(Class<?> clazz)
Returns the uninitialized field value for the given primitive type.
|
public static boolean canDecode(Class<?> clazz)
clazz
- a Class objecttrue
if the given object type can be decodedpublic static <T> T decode(Class<T> clazz, Splittable split)
@Deprecated public static <T> T decode(Class<T> clazz, String string)
decode(Class, Splittable)
instead.UnsupportedOperationException
public static Splittable encode(Class<?> clazz, Object obj)
encode(Object)
when possible.public static Splittable encode(Object obj)
public static Set<Class<?>> getAllValueTypes()
Copyright © 2016. All rights reserved.