| Constructor and Description |
|---|
CurrencyTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Object fromValue,
ReifiedType toType)
Return if this converter is able to convert the specified object to the
specified type.
|
Object |
convert(Object source,
ReifiedType toType)
Convert the specified object to an instance of the specified type.
|
public boolean canConvert(Object fromValue, ReifiedType toType)
ConvertercanConvert in interface ConverterfromValue - The source object s to convert.toType - The target type T.true if the conversion is possible,
false otherwise.public Object convert(Object source, ReifiedType toType) throws Exception
Converterconvert in interface Convertersource - The source object s to convert.toType - The target type T.Exception - If the conversion cannot succeed. This exception should
not be thrown when the canConvert method has
returned true.Copyright © 2013. All rights reserved.