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