- Type Parameters:
T
- the type of the converter
- All Known Subinterfaces:
StringConverter<T>
,org.joda.convert.TypedFromStringConverter<T>
,TypedStringConverter<T>
public interface FromStringConverter<T>
Interface defining conversion from a
String
.
FromStringConverter is an interface and must be implemented with care. Implementations must be immutable and thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionconvertFromString
(Class<? extends T> cls, String str) Converts the specified object from aString
.
-
Method Details
-
convertFromString
Converts the specified object from aString
.- Parameters:
cls
- the class to convert to, not nullstr
- the string to convert, not null- Returns:
- the converted object, may be null but generally not
-