public class StringToNumberConverter extends Object implements SupportingConverter
Bytes. This class is
copied from Spring.| Constructor and Description |
|---|
StringToNumberConverter() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Object source,
Class<T> targetType)
Convert the given
source to the specified targetType. |
boolean |
supports(Class<?> sourceType,
Class<?> targetType)
Indicates if the source type and the target type are supported.
|
public <T> T convert(Object source, Class<T> targetType)
Convertersource to the specified targetType.public boolean supports(Class<?> sourceType, Class<?> targetType)
SupportingConvertersupports in interface SupportingConvertersourceType - the type of the source object that needs to be convertedtargetType - the type of the result object after conversionCopyright © 2021. All rights reserved.