@Deprecated
public interface ConversionHandler
getNeededConverter
must not return null
whenever
isExplicitlyConvertible
returned true with the same arguments.TypeConversionHandler
Modifier and Type | Method and Description |
---|---|
void |
addConverter(java.lang.Class<?> formal,
java.lang.Class<?> actual,
Converter converter)
Deprecated.
Add the given converter to the handler.
|
Converter |
getNeededConverter(java.lang.Class<?> formal,
java.lang.Class<?> actual)
Deprecated.
Returns the appropriate Converter object needed for an explicit conversion
Returns null if no conversion is needed.
|
boolean |
isExplicitlyConvertible(java.lang.Class<?> formal,
java.lang.Class<?> actual,
boolean possibleVarArg)
Deprecated.
Check to see if the conversion can be done using an explicit conversion
|
boolean isExplicitlyConvertible(java.lang.Class<?> formal, java.lang.Class<?> actual, boolean possibleVarArg)
formal
- expected formal typeactual
- provided argument typepossibleVarArg
- whether var arg is possible hereConverter getNeededConverter(java.lang.Class<?> formal, java.lang.Class<?> actual)
formal
- expected formal typeactual
- provided argument typevoid addConverter(java.lang.Class<?> formal, java.lang.Class<?> actual, Converter converter)
formal
- expected formal typeactual
- provided argument typeconverter
- converter