AmountConverter converting Money to its amount represented as decimal string
(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 DecimalStringAmountConverter |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | fromMoney(final Money money)
Implements com.
|
| pack-priv static DecimalStringAmountConverter | |
| public Money | toMoney(final CurrencyUnit currencyUnit, final BigDecimal amount)
Implements com.
|
| INSTANCE | back to summary |
|---|---|
| private static final DecimalStringAmountConverter INSTANCE | |
| DecimalStringAmountConverter | back to summary |
|---|---|
| private DecimalStringAmountConverter() | |
| fromMoney | back to summary |
|---|---|
| public String fromMoney(final Money money) Implements com.
| |
| getInstance | back to summary |
|---|---|
| pack-priv static DecimalStringAmountConverter getInstance() | |
| toMoney | back to summary |
|---|---|
| public Money toMoney(final CurrencyUnit currencyUnit, final BigDecimal amount) Implements com.
| |