Class EnumConverter<T extends Enum<T>>

java.lang.Object
com.beust.jcommander.converters.EnumConverter<T>
Type Parameters:
T - the enum type
All Implemented Interfaces:
IStringConverter<T>

public class EnumConverter<T extends Enum<T>> extends Object implements IStringConverter<T>
A converter to parse enums
  • Constructor Details

    • EnumConverter

      public EnumConverter(String optionName, Class<T> clazz)
      Constructs a new converter.
      Parameters:
      optionName - the option name for error reporting
      clazz - the enum class
  • Method Details