public class DoubleConverter extends Object implements TypeConverter<Double>
Double.parseDouble(), so look there for all its peccadilloes.Double.parseDouble(String)| Constructor and Description |
|---|
DoubleConverter() |
| Modifier and Type | Method and Description |
|---|---|
Double |
convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Double or null.
|
public Double convert(String input, GetOpt options, OptionSpecification option)
convert in interface TypeConverter<Double>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 Double if the string is
parseableCommandLineProcessingException - if the parse failsDouble.parseDouble(String)Copyright © 2015. All rights reserved.