F
- the source class of this convertorT
- the destination class of this convertorpublic interface Convertor<F,T>
Modifier and Type | Method and Description |
---|---|
T |
convert(F value)
Converts
value to another type. |
java.lang.Class<? extends T> |
getDestinationClass()
Returns the class that this convertor converts to.
|
T convert(F value) throws java.lang.Exception
value
to another type.value
- the value to convertjava.lang.Exception
- if there was a conversion errorjava.lang.Class<? extends T> getDestinationClass()