Class DateParameter

  • All Implemented Interfaces:
    com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<org.joda.time.DateTime>

    public final class DateParameter
    extends ParameterConverterValidator<org.joda.time.DateTime>
    DateTime CLI parameter converter/validator restricted to dates. The DateTimes produced by this class will always have a time zone of DateTimeZone.UTC.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.joda.time.DateTime convert​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateParameter

        public DateParameter()
    • Method Detail

      • convert

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