public final class Money
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Money(java.util.Currency currency,
java.math.BigDecimal amount) |
Money(java.util.Currency currency,
java.lang.Number amount) |
Money(java.lang.String currency,
java.math.BigDecimal amount) |
Money(java.lang.String currency,
java.lang.Number amount) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getAmount() |
java.lang.String |
getCurrency() |
public Money(java.util.Currency currency,
java.math.BigDecimal amount)
currency - a not null currencyamount - the value for the amount, may be nullpublic Money(java.lang.String currency,
java.math.BigDecimal amount)
currency - a not null currency codeamount - the value for the amount, may be nullpublic Money(java.util.Currency currency,
java.lang.Number amount)
currency - a not null currencyamount - the value for the amount, may be nullpublic Money(java.lang.String currency,
java.lang.Number amount)
currency - a not null currency codeamount - the value for the amount, may be null