Interface TypeConverter<T>

  • Type Parameters:
    T - the type of the object that is the result of the conversion.

    public interface TypeConverter<T>
    This interface defines the contract for classes that know how to convert a String into some domain object.
    Since:
    2.5.0
    Author:
    oswaldo.bapvic.jr (Oswaldo Junior)
    • Method Detail

      • convert

        T convert​(String value)
           throws ParseException
        Converts the specified command line argument value to some domain object.
        Parameters:
        value - the command line argument String value
        Returns:
        the resulting domain object
        Throws:
        ParseException - when type conversion fails, to have more control over the error message that is logged