Interface FromStringConverter<T>

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 Type
    Method
    Description
    convertFromString(Class<? extends T> cls, String str)
    Converts the specified object from a String.
  • Method Details

    • 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