public class BigDecimalConverter extends Object implements TypeConverter<BigDecimal>
| Constructor and Description |
|---|
BigDecimalConverter() |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a BigDecimal or null.
|
public BigDecimal convert(String input, GetOpt options, OptionSpecification option)
convert in interface TypeConverter<BigDecimal>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 BigDecimal if the string is
parseableCommandLineProcessingException - if the parse failsBigDecimal.BigDecimal(String)Copyright © 2017. All rights reserved.