Package net.obvj.confectory.util
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tconvert(String value)Converts the specified command line argument value to some domain object.
-
-
-
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
-
-