public interface NumericConverter
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_POLICY
The default policy for NumericConverter.
|
| 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.
|
static final int DEFAULT_POLICY
BigDecimal toBigDecimal(BigInteger bInteger)
bInteger - the BigInteger to be convertedBigDecimal toBigDecimal(Double d)
d - the Double to be convertedBigDecimal toBigDecimal(Float f)
f - the Float to be convertedBigDecimal toBigDecimal(Number n)
n - the Number to be convertedBigInteger toBigInteger(BigDecimal bDecimal)
bDecimal - the BigDecimal to be convertedBigInteger toBigInteger(Double d)
d - the Double to be convertedBigInteger toBigInteger(Float f)
f - the Float to be convertedBigInteger toBigInteger(Number n)
n - the Number to be convertedCopyright © 2017. All rights reserved.