org.joda.convert
Interface FromStringConverter<T>

Type Parameters:
T - the type of the converter
All Known Subinterfaces:
StringConverter<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
 T convertFromString(Class<? extends T> cls, String str)
          Converts the specified object from a String.
 

Method Detail

convertFromString

T convertFromString(Class<? extends T> cls,
                    String str)
Converts the specified object from a String.

Parameters:
cls - the class to convert to, not null
str - the string to convert, not null
Returns:
the converted object, may be null but generally not


Copyright © 2010-2013 Joda.org. All Rights Reserved.