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