Class EnumConverterValidator<T extends Enum>

    • Constructor Detail

      • EnumConverterValidator

        public EnumConverterValidator​(@NotNull
                                      @NotNull Class<T> enumClass)
    • Method Detail

      • validate

        public void validate​(String name,
                             String value)
                      throws com.beust.jcommander.ParameterException
        Specified by:
        validate in interface com.beust.jcommander.IParameterValidator
        Throws:
        com.beust.jcommander.ParameterException
      • convert

        public T convert​(String value)
        Specified by:
        convert in interface com.beust.jcommander.IStringConverter<T extends Enum>