Class DateParam

All Implemented Interfaces:
OneArgParam<LocalDate>, Param

public class DateParam extends BasicOneArgParam<LocalDate>
  • Constructor Details

  • Method Details

    • convertArg

      protected LocalDate convertArg(String param, String arg) throws Exception
      A conversion method to get a LocalDate from a string.
      Specified by:
      convertArg in class BasicOneArgParam<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.