public class ArrayHandler extends java.lang.Object implements ConversionHandler
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class |
type |
| Constructor and Description |
|---|
ArrayHandler(java.lang.Class type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvertFrom(java.lang.Class cls)
This method is used to indicate to the runtime whehter or not the handler knows how to convert
from the specified type.
|
java.lang.Object |
convertFrom(java.lang.Object in)
Converts the passed argument to the type represented by the handler.
|
private static java.lang.Object |
handleLooseTypeConversion(java.lang.Class sourceType,
java.lang.Object input,
java.lang.Class targetType)
Messy method to handle primitive boxing for conversion.
|
public java.lang.Object convertFrom(java.lang.Object in)
ConversionHandlerconvertFrom in interface ConversionHandlerin - - the input typepublic boolean canConvertFrom(java.lang.Class cls)
ConversionHandlercanConvertFrom in interface ConversionHandlercls - - the source typeprivate static java.lang.Object handleLooseTypeConversion(java.lang.Class sourceType,
java.lang.Object input,
java.lang.Class targetType)
sourceType - input - targetType -