public class StringToNumberConverter extends Object implements SupportingConverter
Byte
s. 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)
Converter
source
to the specified targetType
.public boolean supports(Class<?> sourceType, Class<?> targetType)
SupportingConverter
supports
in interface SupportingConverter
sourceType
- the type of the source object that needs to be convertedtargetType
- the type of the result object after conversionCopyright © 2021. All rights reserved.