javax.money.MonetaryAmount .
javax.money.MonetaryAmountFactory , which simplifies development of the SPI interface.
| Modifier and Type | Field and Description |
|---|---|
| private CurrencyUnit | |
| private final MonetaryContext | defaultMonetaryContext
The default |
| private final MonetaryContext | maxMonetaryContext
The default |
| private MonetaryContext | |
| private Number |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: aMonetaryAmount combining the numeric value and currency unit.Implements javax. Creates a new instance of |
| protected abstract T | |
| protected static BigDecimal | Returns: the correspondingBigDecimalthe number type num)
Deprecated
will be removed in next release
Creates a |
| public MonetaryContext | getDefaultMonetaryContext()
Implements javax. Returns the default |
| public MonetaryContext | getMaximalMonetaryContext()
Overrides default javax. Returns the maximal |
| protected abstract MonetaryContext | |
| protected abstract MonetaryContext | |
| public MonetaryAmountFactory | Returns: an according Money instance.the amount to be converted, if necessary. smount)Overrides default javax. Converts (if necessary) the given |
| public MonetaryAmountFactory | setContext(MonetaryContext monetaryContext)
Implements javax. Sets the |
| public MonetaryAmountFactory | setCurrency(CurrencyUnit currency)
Implements javax. Sets the |
| public MonetaryAmountFactory | setCurrency(String currencyCode)
Overrides default javax. Sets the |
| public MonetaryAmountFactory | setNumber(Number number)
Implements javax. Sets the number to be used. |
| public MonetaryAmountFactory | Returns: aMoney combining the numeric value and currency unit.numeric value. number)Implements javax. Creates a new instance of |
| public MonetaryAmountFactory | setNumber(long number)
Implements javax. Sets the number to be used. |
| currency | back to summary |
|---|---|
| private CurrencyUnit currency | |
| defaultMonetaryContext | back to summary |
|---|---|
| private final MonetaryContext defaultMonetaryContext The default | |
| maxMonetaryContext | back to summary |
|---|---|
| private final MonetaryContext maxMonetaryContext The default | |
| monetaryContext | back to summary |
|---|---|
| private MonetaryContext monetaryContext | |
| number | back to summary |
|---|---|
| private Number number | |
| AbstractAmountFactory | back to summary |
|---|---|
| public AbstractAmountFactory() | |
| create | back to summary |
|---|---|
| public T create() Implements javax. Creates a new instance of
| |
| create | back to summary |
|---|---|
| protected abstract T create(Number number, CurrencyUnit currency, MonetaryContext monetaryContext) | |
| getBigDecimal | back to summary |
|---|---|
| protected static BigDecimal getBigDecimal(Number num)
Deprecated will be removed in next release Creates a
| |
| getDefaultMonetaryContext | back to summary |
|---|---|
| public MonetaryContext getDefaultMonetaryContext() Implements javax. Returns the default
| |
| getMaximalMonetaryContext | back to summary |
|---|---|
| public MonetaryContext getMaximalMonetaryContext() Overrides default javax. Returns the maximal
| |
| loadDefaultMonetaryContext | back to summary |
|---|---|
| protected abstract MonetaryContext loadDefaultMonetaryContext() | |
| loadMaxMonetaryContext | back to summary |
|---|---|
| protected abstract MonetaryContext loadMaxMonetaryContext() | |
| setAmount | back to summary |
|---|---|
| public MonetaryAmountFactory Overrides default javax. Converts (if necessary) the given
| |
| setContext | back to summary |
|---|---|
| public MonetaryAmountFactory Implements javax. Doc from javax. Sets the
| |
| setCurrency | back to summary |
|---|---|
| public MonetaryAmountFactory Implements javax. Doc from javax. Sets the
| |
| setCurrency | back to summary |
|---|---|
| public MonetaryAmountFactory Overrides default javax. Doc from javax. Sets the
| |
| setNumber | back to summary |
|---|---|
| public MonetaryAmountFactory Implements javax. Doc from javax. Sets the number to be used.
| |
| setNumber | back to summary |
|---|---|
| public MonetaryAmountFactory Implements javax. Creates a new instance of
| |
| setNumber | back to summary |
|---|---|
| public MonetaryAmountFactory Implements javax. Doc from javax. Sets the number to be used.
| |