javax.money.MonetaryOperator.
This class is thread-safe.
| Modifier and Type | Class and Description |
|---|---|
| private static class | DefaultMonetaryRoundingsSingletonSpi.DefaultCurrencyRounding
Default Rounding that rounds a |
| Modifier and Type | Field and Description |
|---|---|
| private static final MonetaryRounding | DEFAULT_ROUNDING
An adaptive rounding instance that transparently looks up the correct rounding. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RoundingQueryBuilder | Returns: the correspondingMonetaryOperator implementing the
rounding.Creates an rounding instance using |
| public List | Returns: the default provider list and ordering, not null.Implements javax. |
| public MonetaryRounding | Returns: the default rounding, never null.Implements javax. |
| public Set | Returns: the names of all current registered providers, never null.Implements javax. |
| public Set | Returns: the set of custom rounding ids, nevernull.the providers and ordering to be used. By default providers and ordering as defined in
#getDefaultProviders is used, not null. providers)Implements javax. |
| public Collection | Returns: the collection found, not null.the rounding query, not null. query)Implements javax. RoundingQuery.
|
| DEFAULT_ROUNDING | back to summary |
|---|---|
| private static final MonetaryRounding DEFAULT_ROUNDING An adaptive rounding instance that transparently looks up the correct rounding. | |
| DefaultMonetaryRoundingsSingletonSpi | back to summary |
|---|---|
| public DefaultMonetaryRoundingsSingletonSpi() | |
| createRoundingQueryBuilder | back to summary |
|---|---|
| public RoundingQueryBuilder createRoundingQueryBuilder() Creates an rounding instance using
| |
| getDefaultProviderChain | back to summary |
|---|---|
| public List Implements javax. Get the default providers list to be used. | |
| getDefaultRounding | back to summary |
|---|---|
| public MonetaryRounding getDefaultRounding() Implements javax. Get the default rounding, which delegates rounding dynamically depending on the current currency.
| |
| getProviderNames | back to summary |
|---|---|
| public Set Implements javax. Get the names of all current registered providers. | |
| getRoundingNames | back to summary |
|---|---|
| public Set Implements javax. Allows to access the identifiers of the current defined roundings. | |
| getRoundings | back to summary |
|---|---|
| public Collection Implements javax. Query all roundings matching the given
| |
MonetaryAmount based on the
amount's CurrencyUnit.
| Modifier and Type | Field and Description |
|---|---|
| private static final RoundingContext | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryAmount | apply(MonetaryAmount
the amount to be operated on. amount)Implements javax. |
| public RoundingContext | getRoundingContext()
Implements javax.
|
| ROUNDING_CONTEXT | back to summary |
|---|---|
| private static final RoundingContext ROUNDING_CONTEXT | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DefaultCurrencyRounding | back to summary |
|---|---|
| private DefaultCurrencyRounding() | |
| apply | back to summary |
|---|---|
| public MonetaryAmount apply(MonetaryAmount amount) Implements javax. Doc from javax. Applies the operator on the given amount.
| |
| getRoundingContext | back to summary |
|---|---|
| public RoundingContext getRoundingContext() Implements javax. Doc from javax. Access the rounding's context, which gives more details of the rounding instances such as
| |