T
- public interface StringConverter<T>
StringConverter
translates a textual representation
to an instance of T
.Modifier and Type | Method and Description |
---|---|
T |
convert(java.lang.String s)
Translates the textual representation given in
s to an instance of T . |
T convert(java.lang.String s) throws java.lang.Exception
s
to an instance of T
.s
- a non-null stringjava.lang.Exception
- if there is an error during the translation (format incorrent etc..)