public interface Rounding
Rounding
interface should be implemented by classes which
round the price in a specified currency and store.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
void |
round(java.math.BigDecimal[] a,
java.lang.String currency)
Rounds a BigDecimal array using a customized algorithm.
|
java.math.BigDecimal |
round(java.math.BigDecimal fromAmount,
java.lang.String currency)
Rounds a monetary value in the specified currency.
|
static final java.lang.String COPYRIGHT
java.math.BigDecimal round(java.math.BigDecimal fromAmount, java.lang.String currency)
fromAmount
- java.math.BigDecimalcurrency
- java.lang.Stringvoid round(java.math.BigDecimal[] a, java.lang.String currency)
a
- Array of the BigDecimal valuescurrency
- java.lang.String