Class EnumConverter<T extends Enum<T>>

    • Constructor Detail

      • 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 Detail

      • convert

        public T convert​(String value)
        Specified by:
        convert in interface IStringConverter<T extends Enum<T>>
        Returns:
        an object of type created from the parameter value.