CurrencyUnit, javax.money.MonetaryAmount and
javax.money.MonetaryRounding instances as provided by the
different registered SPI instances.
This class is thread safe.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Collection | Returns: all currently availableMonetaryAmount implementation classes that have
corresponding MonetaryAmountFactory instances provided, never nullAccess all currently available |
| public static Collection | Returns: the instances found, never null.the factory query, not null. query)Returns all factory instances that match the query. |
| public static <T extends MonetaryAmount> MonetaryAmountFactory | getAmountFactory(Class<T>
MonetaryAmount implementation type, nor null.Access an |
| public static MonetaryAmountFactory | Returns: the factory found, or null.the factory query, not null. query)Executes the query and returns the factory found, if there is only one factory. |
| public static Collection | Returns: all currently availableMonetaryAmount implementation classes that have
corresponding MonetaryAmountFactory instances provided, never nullAccess all currently available |
| public static Set | Returns: the correspondingCurrencyUnit instance.the target locale, String... Locale, typically representing an ISO
country, not null.the (optional) specification of providers to consider. providers)Access a new instance based on the |
| public static Collection | Returns: the list of known currencies, never null.the (optional) specification of providers to consider. providers)Access all currencies known. |
| public static Collection | Returns: the list of known currencies, never null.The query)javax.money.CurrencyQuery, not null.Query all currencies matching the given query. |
| public static CurrencyUnit | Returns: the correspondingCurrencyUnit instance.the ISO currency code, not currencyCode, String... null.the (optional) specification of providers to consider. providers)Access a new instance based on the currency code. |
| public static CurrencyUnit | Returns: the correspondingCurrencyUnit instance.the target locale, String... Locale, typically representing an ISO
country, not null.the (optional) specification of providers to consider. providers)Access a new instance based on the |
| public static CurrencyUnit | Returns: the list of known currencies, never null.The query)javax.money.CurrencyQuery, not null.Query all currencies matching the given query. |
| public static Set | Returns: the list of known currencies, never null.Query all currencies matching the given query. |
| public static MonetaryAmountFactory | getDefaultAmountFactory()
Access the default |
| public static Class | getDefaultAmountType()
Access the default |
| public static List | Returns: the ordered list provider names, modelling the default provider chain used, never null.Query the list and ordering of provider names modelling the default provider chain to be used, if no provider chain was explicitly set.. |
| public static MonetaryRounding | Returns: the (shared) default rounding instance.Creates a rounding that can be added as |
| public static List | Returns: the chained list of provider names, nevernull.Allows to access the default providers chain used if no provider chain was passed explicitly.. |
| public static MonetaryRounding | getRounding(CurrencyUnit
The currency, which determines the required scale. 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)Creates an |
| public static MonetaryRounding | getRounding(String
The rounding identifier. roundingName, String... the providers and ordering to be used. By default providers and ordering as defined in
#getDefaultProviders is used. providers)Access an |
| public static MonetaryRounding | getRounding(RoundingQuery
The roundingQuery)javax.money.RoundingQuery that may contains arbitrary parameters to be
evaluated.Access a |
| public static 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 static Set | Returns: the set of provider names, nevernull.Allows to access the names of the current registered providers. |
| public static Collection | getRoundings(RoundingQuery
The roundingQuery)javax.money.RoundingQuery that may contains arbitrary parameters to be
evaluated.Access multiple |
| public static boolean | Returns: true, if at least oneMonetaryAmountFactory matches the query.the factory query, not null. query)Allows to check if any of the getXXX methods return non empty/non null results of |
| public static boolean | Returns: true if Monetary#getCurrency(String, java.lang.String...)
would return a result for the given code.the currency code, not code, String... null.the (optional) specification of providers to consider. providers)Allows to check if a |
| public static boolean | Returns: true if getCurrencies(Locale, String...) would return a
result containing a currency with the given code.the target locale, String... Locale, not null.the (optional) specification of providers to consider. providers)Allows to check if a |
| public static boolean | Returns: true, if a correspondingjavax.money.MonetaryRounding is available.The rounding identifier. roundingName, String... the providers and ordering to be used. By default providers and ordering as defined in
#getDefaultProviders is used. providers)Checks if a |
| public static boolean | Returns: true, if a correspondingjavax.money.MonetaryRounding is available.The currency, which determines the required scale. 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 |
| public static boolean | Returns: true, if a correspondingjavax.money.MonetaryRounding is available.The roundingQuery)javax.money.RoundingQuery that may contains arbitrary parameters to be
evaluated.Checks if a |
| private static MonetaryAmountsSingletonQuerySpi | |
| private static MonetaryAmountsSingletonSpi | |
| private static MonetaryCurrenciesSingletonSpi | |
| private static MonetaryRoundingsSingletonSpi |
| Monetary | back to summary |
|---|---|
| private Monetary() Private singletons constructor. | |
| getAmountFactories | back to summary |
|---|---|
| public static Collection Access all currently available
| |
| getAmountFactories | back to summary |
|---|---|
| public static Collection Returns all factory instances that match the query.
| |
| getAmountFactory | back to summary |
|---|---|
| public static <T extends MonetaryAmount> MonetaryAmountFactory Access an
| |
| getAmountFactory | back to summary |
|---|---|
| public static MonetaryAmountFactory Executes the query and returns the factory found, if there is only one factory. If multiple factories match the query, one is selected.
| |
| getAmountTypes | back to summary |
|---|---|
| public static Collection Access all currently available
| |
| getCurrencies | back to summary |
|---|---|
| public static Set Access a new instance based on the
| |
| getCurrencies | back to summary |
|---|---|
| public static Collection Access all currencies known.
| |
| getCurrencies | back to summary |
|---|---|
| public static Collection Query all currencies matching the given query.
| |
| getCurrency | back to summary |
|---|---|
| public static CurrencyUnit getCurrency(String currencyCode, String... providers) Access a new instance based on the currency code. Currencies are
available as provided by
| |
| getCurrency | back to summary |
|---|---|
| public static CurrencyUnit getCurrency(Locale locale, String... providers) Access a new instance based on the
| |
| getCurrency | back to summary |
|---|---|
| public static CurrencyUnit getCurrency(CurrencyQuery query) Query all currencies matching the given query.
| |
| getCurrencyProviderNames | back to summary |
|---|---|
| public static Set Query all currencies matching the given query. | |
| getDefaultAmountFactory | back to summary |
|---|---|
| public static MonetaryAmountFactory Access the default
| |
| getDefaultAmountType | back to summary |
|---|---|
| public static Class Access the default
| |
| getDefaultCurrencyProviderChain | back to summary |
|---|---|
| public static List Query the list and ordering of provider names modelling the default provider chain to be used, if no provider chain was explicitly set.. | |
| getDefaultRounding | back to summary |
|---|---|
| public static MonetaryRounding getDefaultRounding() Creates a rounding that can be added as
| |
| getDefaultRoundingProviderChain | back to summary |
|---|---|
| public static List Allows to access the default providers chain used if no provider chain was passed explicitly.. | |
| getRounding | back to summary |
|---|---|
| public static MonetaryRounding getRounding(CurrencyUnit currencyUnit, String... providers) Creates an
| |
| getRounding | back to summary |
|---|---|
| public static MonetaryRounding getRounding(String roundingName, String... providers) Access an
| |
| getRounding | back to summary |
|---|---|
| public static MonetaryRounding getRounding(RoundingQuery roundingQuery) Access a
| |
| getRoundingNames | back to summary |
|---|---|
| public static Set Allows to access the names of the current defined roundings. | |
| getRoundingProviderNames | back to summary |
|---|---|
| public static Set Allows to access the names of the current registered providers. | |
| getRoundings | back to summary |
|---|---|
| public static Collection Access multiple
| |
| isAvailable | back to summary |
|---|---|
| public static boolean isAvailable(MonetaryAmountFactoryQuery query) Allows to check if any of the getXXX methods return non empty/non null results of
| |
| isCurrencyAvailable | back to summary |
|---|---|
| public static boolean isCurrencyAvailable(String code, String... providers) Allows to check if a
| |
| isCurrencyAvailable | back to summary |
|---|---|
| public static boolean isCurrencyAvailable(Locale locale, String... providers) Allows to check if a
| |
| isRoundingAvailable | back to summary |
|---|---|
| public static boolean isRoundingAvailable(String roundingName, String... providers) Checks if a
| |
| isRoundingAvailable | back to summary |
|---|---|
| public static boolean isRoundingAvailable(CurrencyUnit currencyUnit, String... providers) Checks if a
| |
| isRoundingAvailable | back to summary |
|---|---|
| public static boolean isRoundingAvailable(RoundingQuery roundingQuery) Checks if a
| |
| monetaryAmountsSingletonQuerySpi | back to summary |
|---|---|
| private static MonetaryAmountsSingletonQuerySpi monetaryAmountsSingletonQuerySpi() The used | |
| monetaryAmountsSingletonSpi | back to summary |
|---|---|
| private static MonetaryAmountsSingletonSpi monetaryAmountsSingletonSpi() The used | |
| monetaryCurrenciesSingletonSpi | back to summary |
|---|---|
| private static MonetaryCurrenciesSingletonSpi monetaryCurrenciesSingletonSpi() The used
| |
| monetaryRoundingsSingletonSpi | back to summary |
|---|---|
| private static MonetaryRoundingsSingletonSpi monetaryRoundingsSingletonSpi() The used
| |