TFrom
- The type being transformedTTo
- The type being transformed topublic interface Transformer<TFrom,TTo>
A serializer is constructed using one of the following constructor signatures (sorted by precedence):
java.lang.reflect.Type
. This is the type being
serialized.java.lang.Class
. This is the class being serialized.
Modifier and Type | Method and Description |
---|---|
TFrom |
transformFrom(TTo in)
Converts an object from the destination type into the source type.
|
TTo |
transformTo(TFrom in)
Converts the source object into the destination type.
|