MonetaryRoundingsSingletonSpipublic final class DefaultMonetaryRoundingsSingletonSpi extends Object implements MonetaryRoundingsSingletonSpi
MonetaryOperator.
This class is thread-safe.| Constructor | Description |
|---|---|
DefaultMonetaryRoundingsSingletonSpi() |
| Modifier and Type | Method | Description |
|---|---|---|
RoundingQueryBuilder |
createRoundingQueryBuilder() |
Creates an rounding instance using
RoundingMode.UP rounding. |
List<String> |
getDefaultProviderChain() |
Get the default providers list to be used.
|
MonetaryRounding |
getDefaultRounding() |
Get the default rounding, which delegates rounding dynamically depending on the current currency.
|
Set<String> |
getProviderNames() |
Get the names of all current registered providers.
|
Set<String> |
getRoundingNames(String... providers) |
Allows to access the identifiers of the current defined roundings.
|
Collection<MonetaryRounding> |
getRoundings(RoundingQuery query) |
Query all roundings matching the given
RoundingQuery. |
getRounding, getRounding, getRounding, isRoundingAvailable, isRoundingAvailable, isRoundingAvailablepublic DefaultMonetaryRoundingsSingletonSpi()
public RoundingQueryBuilder createRoundingQueryBuilder()
RoundingMode.UP rounding.MonetaryOperator implementing the
rounding.MonetaryException - if no such rounding could be evaluated.public MonetaryRounding getDefaultRounding()
getDefaultRounding in interface MonetaryRoundingsSingletonSpipublic Collection<MonetaryRounding> getRoundings(RoundingQuery query)
RoundingQuery.getRoundings in interface MonetaryRoundingsSingletonSpiquery - the rounding query, not null.public Set<String> getProviderNames()
getProviderNames in interface MonetaryRoundingsSingletonSpipublic List<String> getDefaultProviderChain()
getDefaultProviderChain in interface MonetaryRoundingsSingletonSpiRoundingQueryBuilderpublic Set<String> getRoundingNames(String... providers)
getRoundingNames in interface MonetaryRoundingsSingletonSpiproviders - the providers and ordering to be used. By default providers and ordering as defined in
#getDefaultProviders is used, not null.null.Copyright © 2012–2018 JSR 354 - Expert Group. All rights reserved.