Top Description Methods
org.joda.convert

public Interface FromStringConverter<T>

Known Direct Subinterfaces
org.joda.convert.StringConverter, org.joda.convert.TypedFromStringConverter
Type Parameters
<T>
the type of the converter

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 TypeMethod and Description
public T

Returns:

the converted object, may be null but generally not
convertFromString
(Class<? extends T>
the class to convert to, not null
cls
,
String
the string to convert, not null
str
)

Converts the specified object from a String.

Method Detail

convertFromStringback to summary
public T convertFromString(Class<? extends T> cls, String str)

Converts the specified object from a String.

Parameters
cls:Class<? extends T>

the class to convert to, not null

str:String

the string to convert, not null

Returns:T

the converted object, may be null but generally not