public class LongOptionHandler extends OneArgumentOptionHandler<Long>
option, owner, setter
Constructor and Description |
---|
LongOptionHandler(CmdLineParser parser,
OptionDef option,
Setter<? super Long> setter) |
Modifier and Type | Method and Description |
---|---|
protected Long |
parse(String argument)
Parses a string to a real value of Type <T>.
|
getDefaultMetaVariable, parseArguments
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
public LongOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Long> setter)
protected Long parse(String argument) throws NumberFormatException
OneArgumentOptionHandler
parse
in class OneArgumentOptionHandler<Long>
argument
- String value to parseNumberFormatException
- if parsing is not possibleCopyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.