Package org.rwtodd.args
Class DateParam
- All Implemented Interfaces:
OneArgParam<LocalDate>,Param
-
Field Summary
Fields inherited from class org.rwtodd.args.BasicOneArgParam
arg, helpText, paramNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDateconvertArg(String param, String arg) A conversion method to get a LocalDate from a string.
-
Constructor Details
-
DateParam
-
DateParam
-
-
Method Details
-
convertArg
A conversion method to get a LocalDate from a string.- Specified by:
convertArgin classBasicOneArgParam<LocalDate>- Parameters:
param- the name of the parameter found on the command line. In some cases it might affect conversion, but it is also good for error messages.arg- the argument to convert to a type T.- Returns:
- the converted argument.
- Throws:
Exception- if there is a problem with the conversion.
-