public class ShortConverter extends Object implements TypeConverter<Short>
Short.parseShort(),
so look there for all its peccadilloes.Short.parseShort(String)| Constructor and Description |
|---|
ShortConverter() |
| Modifier and Type | Method and Description |
|---|---|
Short |
convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Short or null.
|
public Short convert(String input, GetOpt options, OptionSpecification option)
convert in interface TypeConverter<Short>input - the input stringoptions - the options set in use (you'll want this for the usage())option - the specific option whose argument we're trying to parsenull if input is null or blank, or a Short if the string is parseableCommandLineProcessingException - if the parse failsShort.parseShort(String)Copyright © 2015. All rights reserved.