Class DurationParameter

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

public final class DurationParameter extends ParameterConverterValidator<org.joda.time.Duration>
Duration CLI parameter converter/validator.
  • Constructor Details

    • DurationParameter

      public DurationParameter()
  • Method Details

    • convert

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