I
- Input type for the conversionO
- Output typepublic interface Converter<I,O>
We utilise super-type tokens to avoid having to include the class type on the defined method
Implementations of this class should be idempotent (behaviour should not vary between calls) and thread-safe.
Modifier and Type | Method and Description |
---|---|
O |
convert(I inputObject)
Converts from the given I into the specified object
|
Class<I> |
getInputClass()
Obtain the bound class
|
Class<O> |
getOutputClass()
Obtain the bound class
|
O convert(I inputObject)
inputObject
- I to transform, not nullClass<I> getInputClass()
Class<O> getOutputClass()
Copyright © 2010–2018 Jadira Systems. All rights reserved.