public interface TypeConverter extends Serializable
Modifier and Type | Method and Description |
---|---|
<T> T |
convertTo(Class<T> targetType,
String data,
String... optionalFormatPattern)
Convert a String value to the given target type.
|
<T> boolean |
isConvertable(Class<T> targetType)
Check if this converter can convert Strings to the given target type.
|
<T> boolean isConvertable(Class<T> targetType)
targetType
- <T> T convertTo(Class<T> targetType, String data, String... optionalFormatPattern)
isConvertable(...)
before.targetType
- data
- optionalFormatPattern
- Copyright © 2012-12-21-2017. All Rights Reserved.