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)
Convert a string into a Double or null.
|
public Double convert(String input)
convert in interface TypeConverter<Double>input - the input stringnull 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.