AmountConverter converting Money to its amount represented as
decimal number (such as 12.34 for Money.parse("USD 12.34")),
and back to Money from this representation.
| Modifier and Type | Field and Description |
|---|---|
| private static final DecimalNumberAmountConverter |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public BigDecimal | fromMoney(final Money money)
Implements com.
|
| pack-priv static DecimalNumberAmountConverter | |
| public Money | toMoney(final CurrencyUnit currencyUnit, final BigDecimal amount)
Implements com.
|
| INSTANCE | back to summary |
|---|---|
| private static final DecimalNumberAmountConverter INSTANCE | |
| DecimalNumberAmountConverter | back to summary |
|---|---|
| private DecimalNumberAmountConverter() | |
| fromMoney | back to summary |
|---|---|
| public BigDecimal fromMoney(final Money money) Implements com.
| |
| getInstance | back to summary |
|---|---|
| pack-priv static DecimalNumberAmountConverter getInstance() | |
| toMoney | back to summary |
|---|---|
| public Money toMoney(final CurrencyUnit currencyUnit, final BigDecimal amount) Implements com.
| |