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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<T> type_
      Deprecated.
       
    • Constructor Summary

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

      • type_

        private final java.lang.Class<T extends java.lang.Enum<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 parser.
        arg - The argument this type attached to.
        value - The attribute value.
        Returns:
        Converted object.
        Throws:
        ArgumentParserException - If conversion fails.