|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- The expected source typeT
- The output typepublic interface ContentTypeConverter<S,T>
Interface describing a mechanism that converts the data type of IntermediateRepresentations of SerializedObjects for
Upcasters. Different upcasters may require different data type (e.g. byte[]
or
InputStream
), or may produce a different data type than they consume.
Method Summary | |
---|---|
T |
convert(S original)
Converts the given object into another. |
SerializedObject<T> |
convert(SerializedObject<S> original)
Converts the data format of the given original IntermediateRepresentation to the target data type. |
Class<S> |
expectedSourceType()
The expected type of input data. |
Class<T> |
targetType()
The returned type of IntermediateRepresentation |
Method Detail |
---|
Class<S> expectedSourceType()
Class<T> targetType()
SerializedObject<T> convert(SerializedObject<S> original)
original
IntermediateRepresentation to the target data type.
original
- The source to convert
T convert(S original)
SerializedObject
instance.
original
- the value to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |