Class ValueCodex
java.lang.Object
com.google.web.bindery.autobean.shared.ValueCodex
Provides unified encoding and decoding of value objects.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true if ValueCodex can operate on values of the given type.static <T> T
decode
(Class<T> clazz, Splittable split) static <T> T
Deprecated.static Splittable
Encode a value object when the wire format type is known.static Splittable
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.
-
Constructor Details
-
ValueCodex
public ValueCodex()
-
-
Method Details
-
canDecode
Returns true if ValueCodex can operate on values of the given type.- Parameters:
clazz
- a Class object- Returns:
true
if the given object type can be decoded
-
decode
Deprecated.usedecode(Class, Splittable)
instead.No callers in GWT codebase.- Throws:
UnsupportedOperationException
-
encode
Encode a value object when the wire format type is known. This method should be preferred overencode(Object)
when possible. -
encode
-
getAllValueTypes
Return all Value types that can be processed by the ValueCodex. -
getUninitializedFieldValue
Returns the uninitialized field value for the given primitive type.
-
decode(Class, Splittable)
instead.