public class NumericConverterImpl extends Object implements NumericConverter
DEFAULT_POLICY| Constructor and Description |
|---|
NumericConverterImpl() |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
toBigDecimal(BigInteger bInteger)
To convert BigInteger to BigDecimal.
|
BigDecimal |
toBigDecimal(Double d)
To convert Double to BigDecimal.
|
BigDecimal |
toBigDecimal(Float f)
To convert Float to BigDecimal.
|
BigDecimal |
toBigDecimal(Number n)
To convert Number other than BigInteger, Double and Float to BigDecimal.
|
BigInteger |
toBigInteger(BigDecimal bDecimal)
To convert BigDecimal to BigInteger.
|
BigInteger |
toBigInteger(Double d)
To convert Double to BigInteger.
|
BigInteger |
toBigInteger(Float f)
To convert Float to BigInteger.
|
BigInteger |
toBigInteger(Number n)
To convert Number other than BigDecimal, Double and Float to BigInteger.
|
public BigDecimal toBigDecimal(BigInteger bInteger)
toBigDecimal in interface NumericConverterbInteger - the BigInteger to be convertedpublic BigDecimal toBigDecimal(Double d)
toBigDecimal in interface NumericConverterd - the Double to be convertedpublic BigDecimal toBigDecimal(Float f)
toBigDecimal in interface NumericConverterf - the Float to be convertedpublic BigDecimal toBigDecimal(Number n)
toBigDecimal in interface NumericConvertern - the Number to be convertedpublic BigInteger toBigInteger(BigDecimal bDecimal)
toBigInteger in interface NumericConverterbDecimal - the BigDecimal to be convertedpublic BigInteger toBigInteger(Double d)
toBigInteger in interface NumericConverterd - the Double to be convertedpublic BigInteger toBigInteger(Float f)
toBigInteger in interface NumericConverterf - the Float to be convertedpublic BigInteger toBigInteger(Number n)
toBigInteger in interface NumericConvertern - the Number to be convertedCopyright © 2017. All rights reserved.