Class OptionalParameterConverterValidator<T,​C extends ParameterConverterValidator<T>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<T> convert​(java.lang.String value)  
      void validate​(java.lang.String name, java.lang.String value)  
      • Methods inherited from class java.lang.Object

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

      • OptionalParameterConverterValidator

        public OptionalParameterConverterValidator()
    • Method Detail

      • validate

        public void validate​(java.lang.String name,
                             java.lang.String value)
        Specified by:
        validate in interface com.beust.jcommander.IParameterValidator
        Overrides:
        validate in class ParameterConverterValidator<java.util.Optional<T>>
      • convert

        public final java.util.Optional<T> convert​(java.lang.String value)
        Specified by:
        convert in interface com.beust.jcommander.IStringConverter<T>
        Specified by:
        convert in class ParameterConverterValidator<java.util.Optional<T>>