public interface ConversionHandler
getNeededConverter
must not return null
whenever
isExplicitlyConvertible
returned true with the same arguments.Modifier and Type | Method and Description |
---|---|
void |
addConverter(Class formal,
Class actual,
Converter converter)
Add the given converter to the handler.
|
Converter |
getNeededConverter(Class formal,
Class actual)
Returns the appropriate Converter object needed for an explicit conversion
Returns null if no conversion is needed.
|
boolean |
isExplicitlyConvertible(Class formal,
Class actual,
boolean possibleVarArg)
Check to see if the conversion can be done using an explicit conversion
|
boolean isExplicitlyConvertible(Class formal, Class actual, boolean possibleVarArg)
formal
- expected formal typeactual
- provided argument typeConverter getNeededConverter(Class formal, Class actual)
formal
- expected formal typeactual
- provided argument typeCopyright © 2000–2017 The Apache Software Foundation. All rights reserved.