Class EnumParameter<T extends java.lang.Enum<T>>

  • All Implemented Interfaces:
    com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<T>
    Direct Known Subclasses:
    TldStateParameter

    public abstract class EnumParameter<T extends java.lang.Enum<T>>
    extends ParameterConverterValidator<T>
    Base class for Enum-based parameters.

    This is not necessary for single-value Enum parameters (i.e. arity = 1) as JCommander natively supports them, but is necessary for variable-arity (List&lt;Enum&gt;) parameters.

    • Constructor Detail

      • EnumParameter

        public EnumParameter()
    • Method Detail

      • convert

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