javax.money.MonetaryOperator.
This class is thread-safe.
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the provider names in order, defining the provider chain. The default provider chain configured injavamoney.properties is used.Access a list of the currently registered default providers. |
| public MonetaryRounding | Returns: the (shared) default rounding instance.Creates a |
| public Set | Returns: the set of provider names, nevernull.Allows to access the names of the current registered rounding providers. |
| public default MonetaryRounding | getRounding(CurrencyUnit
The currency, which determines the required precision. As
currencyUnit, String... java.math.RoundingMode, by default, java.math.RoundingMode#HALF_UP
is sued.the optional provider list and ordering to be used providers)Access a |
| public default MonetaryRounding | getRounding(String
The rounding name, not null. roundingName, String... the optional provider list and ordering to be used providers)Access a |
| public default MonetaryRounding | Returns: the rounding found, or null, if no rounding matches the query.the rounding query, not null. query)Query a specific rounding with the given query. |
| 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. providers)Allows to access the names of the current defined roundings. |
| public Collection | Returns: the roundings found, never null.the query to be expected, not null. query)Execute a query for |
| public default boolean | Returns: true, if at least one rounding matches the query.the rounding query, not null. query)Checks if any |
| public default boolean | Returns: true, if a correspondingjavax.money.MonetaryRounding is available.The rounding identifier. roundingId, String... the providers and ordering to be used. By default providers and ordering as defined in
#getDefaultProviders is used. providers)Checks if a |
| public default boolean | Returns: true, if a correspondingjavax.money.MonetaryRounding is available.The currency, which determines the required precision. As currencyUnit, String... java.math.RoundingMode,
by default, java.math.RoundingMode#HALF_UP is used.the providers and ordering to be used. By default providers and ordering as defined in
#getDefaultProviders is used. providers)Checks if a |
| getDefaultProviderChain | back to summary |
|---|---|
| public List Access a list of the currently registered default providers. The default providers are used, when no provider names are passed by the caller.
| |
| getDefaultRounding | back to summary |
|---|---|
| public MonetaryRounding getDefaultRounding() Creates a
| |
| getProviderNames | back to summary |
|---|---|
| public Set Allows to access the names of the current registered rounding providers. | |
| getRounding | back to summary |
|---|---|
| public default MonetaryRounding getRounding(CurrencyUnit currencyUnit, String... providers) Access a
| |
| getRounding | back to summary |
|---|---|
| public default MonetaryRounding getRounding(String roundingName, String... providers) Access a
| |
| getRounding | back to summary |
|---|---|
| public default MonetaryRounding getRounding(RoundingQuery query) Query a specific rounding with the given query. If multiple roundings match the query the first one is
selected, since the query allows to determine the providers and their ordering by setting
| |
| getRoundingNames | back to summary |
|---|---|
| public Set Allows to access the names of the current defined roundings. | |
| getRoundings | back to summary |
|---|---|
| public Collection Execute a query for
| |
| isRoundingAvailable | back to summary |
|---|---|
| public default boolean isRoundingAvailable(RoundingQuery query) Checks if any
| |
| isRoundingAvailable | back to summary |
|---|---|
| public default boolean isRoundingAvailable(String roundingId, String... providers) Checks if a
| |
| isRoundingAvailable | back to summary |
|---|---|
| public default boolean isRoundingAvailable(CurrencyUnit currencyUnit, String... providers) Checks if a
| |