Class YearMonthParameter

java.lang.Object
google.registry.tools.params.ParameterConverterValidator<org.joda.time.YearMonth>
google.registry.tools.params.YearMonthParameter
All Implemented Interfaces:
com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<org.joda.time.YearMonth>

public final class YearMonthParameter extends ParameterConverterValidator<org.joda.time.YearMonth>
YearMonth CLI parameter converter/validator (e.g. 1984-12)
  • Constructor Details

    • YearMonthParameter

      public YearMonthParameter()
  • Method Details

    • convert

      public org.joda.time.YearMonth convert(String value)
      Specified by:
      convert in interface com.beust.jcommander.IStringConverter<org.joda.time.YearMonth>
      Specified by:
      convert in class ParameterConverterValidator<org.joda.time.YearMonth>