Class CharOptionHandler
- Since:
- 2.0.9
- Author:
- Jan Materne
-
Field Summary
Fields inherited from class OptionHandler
option, owner, setter -
Constructor Summary
ConstructorsConstructorDescriptionCharOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Character> setter) -
Method Summary
Methods inherited from class OneArgumentOptionHandler
getDefaultMetaVariable, parseArgumentsMethods inherited from class OptionHandler
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
-
Constructor Details
-
CharOptionHandler
-
-
Method Details
-
parse
Description copied from class:OneArgumentOptionHandlerParses a string to a real value of Type <T>.- Specified by:
parsein classOneArgumentOptionHandler<Character>- Parameters:
argument- String value to parse- Returns:
- the parsed value
- Throws:
NumberFormatException- if parsing is not possibleCmdLineException- if the parsing encounters a failure that should be reported to the user.
-