T
- the type of object to be marshalled to json.public class JsonMarshaller<T> extends Object implements DynamoDBMarshaller<T>
Constructor and Description |
---|
JsonMarshaller() |
Modifier and Type | Method and Description |
---|---|
String |
marshall(T obj)
Turns an object of type T into its String representation.
|
T |
unmarshall(Class<T> clazz,
String json)
Turns a String representation of an object of type T into an object.
|
public String marshall(T obj)
DynamoDBMarshaller
marshall
in interface DynamoDBMarshaller<T>
obj
- the object of type Tpublic T unmarshall(Class<T> clazz, String json)
DynamoDBMarshaller
unmarshall
in interface DynamoDBMarshaller<T>
clazz
- the class of type T to unmarshall.json
- the string to unmarshall from.Copyright © 2019. All rights reserved.