public class BigDecimalConverter extends AbstractBaseConverter<BigDecimal>
String into a BigDecimal.
For a description of the format, see BigDecimal.BigDecimal(String).
Example:
@Parameter(names = { "--bigDecimal" }, converter = BigDecimalConverter.class)
private BigDecimal bigDecimal;
BigDecimal,
BigDecimal.BigDecimal(String)failOnNull, targetClass| Constructor and Description |
|---|
BigDecimalConverter(String optionName)
Constructs a converter.
|
| Modifier and Type | Method and Description |
|---|---|
protected BigDecimal |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURIpublic BigDecimalConverter(String optionName)
optionName - The option name, may be null.protected BigDecimal convertImpl(String value)
AbstractBaseConverterconvertImpl in class AbstractBaseConverter<BigDecimal>value - the value to convertCopyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0