T
- Converts Strings into the given type T
.public interface TypeConverter<T>
convert
package.Modifier and Type | Method and Description |
---|---|
T |
convert(java.lang.String s)
Converts a String to a given type.
|
T convert(java.lang.String s) throws java.lang.Exception
s
- the String to convert. Cannot be null
.java.lang.Exception
- thrown when a conversion error occurs