public class TypeConversionHandlerImpl extends Object implements TypeConversionHandler
Constructor and Description |
---|
TypeConversionHandlerImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addConverter(Type formal,
Class<?> actual,
Converter<?> converter)
Add the given converter to the handler.
|
Converter<?> |
getNeededConverter(Type formal,
Class<?> actual)
Returns the appropriate Converter object needed for an explicit conversion
Returns null if no conversion is needed.
|
boolean |
isExplicitlyConvertible(Type formal,
Class<?> actual,
boolean possibleVarArg)
Check to see if the conversion can be done using an explicit conversion
|
public boolean isExplicitlyConvertible(Type formal, Class<?> actual, boolean possibleVarArg)
isExplicitlyConvertible
in interface TypeConversionHandler
actual
- found argument typeformal
- expected formal typepossibleVarArg
- whether var arg is possiblepublic Converter<?> getNeededConverter(Type formal, Class<?> actual)
getNeededConverter
in interface TypeConversionHandler
actual
- found argument typeformal
- expected formal typepublic void addConverter(Type formal, Class<?> actual, Converter<?> converter)
addConverter
in interface TypeConversionHandler
formal
- expected formal typeactual
- provided argument typeconverter
- converterCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.