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

    • Constructor Summary

      Constructors 
      Constructor Description
      EnumArgumentType​(java.lang.Class<T> type)
      Deprecated.
       
    • Constructor Detail

      • EnumArgumentType

        public EnumArgumentType​(java.lang.Class<T> type)
        Deprecated.
    • Method Detail

      • convert

        public T convert​(ArgumentParser parser,
                         Argument arg,
                         java.lang.String value)
                  throws ArgumentParserException
        Deprecated.
        Description copied from interface: ArgumentType

        Converts value to appropriate type.

        If the objects derived from RuntimeException are thrown in conversion because of invalid input from command line, subclass must catch these exceptions and wrap them in ArgumentParserException and give simple error message to explain what happened briefly.

        Specified by:
        convert in interface ArgumentType<T extends java.lang.Enum<T>>
        Parameters:
        parser - The aprser.
        arg - The argument this type attached to.
        value - The attribute value.
        Returns:
        Converted object.
        Throws:
        ArgumentParserException - If conversion fails.