public interface ConversionBinder
Modifier and Type | Method and Description |
---|---|
<S,T> T |
convertTo(Class<S> input,
Class<T> output,
Object object)
Convert an object which is an instance of source class to the given target class
|
<S,T> T |
convertTo(Class<S> input,
Class<T> output,
Object object,
Class<? extends Annotation> qualifier)
Convert an object which is an instance of source class to the given target class
|
<S,T> T |
convertTo(Class<T> output,
Object object)
Convert an object to the given target class
This method infers the source type for the conversion from the runtime type of object.
|
<S,T> T |
convertTo(Class<T> output,
Object object,
Class<? extends Annotation> qualifier)
Convert an object to the given target class
This method infers the source type for the conversion from the runtime type of object.
|
<S,T> T |
convertTo(ConverterKey<S,T> key,
Object object)
Convert an object which is an instance of source class to the given target class
|
<S,T> T convertTo(Class<T> output, Object object)
S
- The Source typeT
- The Target typeoutput
- The target class to convert the object toobject
- The object to be converted<S,T> T convertTo(Class<T> output, Object object, Class<? extends Annotation> qualifier)
S
- The Source typeT
- The Target typeoutput
- The target class to convert the object toobject
- The object to be convertedqualifier
- The qualifier for which the binding must be registered<S,T> T convertTo(Class<S> input, Class<T> output, Object object)
S
- The Source typeT
- The Target typeinput
- The class of the object to be convertedoutput
- The target class to convert the object toobject
- The object to be converted<S,T> T convertTo(Class<S> input, Class<T> output, Object object, Class<? extends Annotation> qualifier)
S
- The Source typeT
- The Target typeinput
- The class of the object to be convertedoutput
- The target class to convert the object toobject
- The object to be convertedqualifier
- Match the converter with the given qualifier<S,T> T convertTo(ConverterKey<S,T> key, Object object)
S
- The Source typeT
- The Target typekey
- The converter keyobject
- The object to be convertedCopyright © 2010–2018 Jadira Systems. All rights reserved.