Uses of Interface
javax.money.CurrencyUnit
| Package | Description |
|---|---|
| javax.money |
Main package of the Money and Currency API.
|
| javax.money.convert |
Defines the monetary currency conversion API.
|
| javax.money.spi |
SPI interfaces of the Money and Currency API, including bootstrap logic.
|
-
Uses of CurrencyUnit in javax.money
Methods in javax.money that return CurrencyUnit Modifier and Type Method Description CurrencyUnitCurrencySupplier. getCurrency()Gets the correspondingCurrencyUnit.static CurrencyUnitMonetary. getCurrency(java.lang.String currencyCode, java.lang.String... providers)Access a new instance based on the currency code.static CurrencyUnitMonetary. getCurrency(java.util.Locale locale, java.lang.String... providers)Access a new instance based on theLocale.static CurrencyUnitMonetary. getCurrency(CurrencyQuery query)Query all currencies matching the given query.CurrencyUnitRoundingContext. getCurrency()Get the basicCurrencyUnit, which is based for this rounding type.CurrencyUnitRoundingQuery. getCurrency()Sets the target CurrencyUnit.Methods in javax.money that return types with arguments of type CurrencyUnit Modifier and Type Method Description static java.util.Collection<CurrencyUnit>Monetary. getCurrencies(java.lang.String... providers)Access all currencies known.static java.util.Set<CurrencyUnit>Monetary. getCurrencies(java.util.Locale locale, java.lang.String... providers)Access a new instance based on theLocale.static java.util.Collection<CurrencyUnit>Monetary. getCurrencies(CurrencyQuery query)Query all currencies matching the given query.Methods in javax.money with parameters of type CurrencyUnit Modifier and Type Method Description static MonetaryRoundingMonetary. getRounding(CurrencyUnit currencyUnit, java.lang.String... providers)Creates anMonetaryOperatorfor roundingMonetaryAmountinstances given a currency.static booleanMonetary. isRoundingAvailable(CurrencyUnit currencyUnit, java.lang.String... providers)Checks if aMonetaryRoundingis available given a roundingId.MonetaryAmountFactory<T>MonetaryAmountFactory. setCurrency(CurrencyUnit currency)Sets theCurrencyUnitto be used.RoundingContextBuilderRoundingContextBuilder. setCurrency(CurrencyUnit currencyUnit)Get the basicCurrencyUnit, which is based for this rounding type.RoundingQueryBuilderRoundingQueryBuilder. setCurrency(CurrencyUnit currencyUnit)Sets the targetCurrencyUnit, which defines a rounding targeting a concreteCurrencyUnit. -
Uses of CurrencyUnit in javax.money.convert
Methods in javax.money.convert that return CurrencyUnit Modifier and Type Method Description CurrencyUnitConversionQuery. getBaseCurrency()Get the base currency.CurrencyUnitCurrencyConversionException. getBaseCurrency()Gets the first currency at fault.CurrencyUnitExchangeRate. getBaseCurrency()Get the base (source)CurrencyUnit.CurrencyUnitConversionQuery. getCurrency()Get the terminating currency.CurrencyUnitExchangeRate. getCurrency()Get the term (target)CurrencyUnit.CurrencyUnitCurrencyConversionException. getTermCurrency()Gets the second currency at fault.Methods in javax.money.convert with parameters of type CurrencyUnit Modifier and Type Method Description static CurrencyConversionMonetaryConversions. getConversion(CurrencyUnit termCurrency, java.lang.String... providers)Access an instance ofCurrencyConversionfor the given providers.default CurrencyConversionExchangeRateProvider. getCurrencyConversion(CurrencyUnit term)Access aCurrencyConversionthat can be applied as aMonetaryOperatorto an amount.default ExchangeRateExchangeRateProvider. getExchangeRate(CurrencyUnit base, CurrencyUnit term)Access aExchangeRateusing the given currencies.default booleanExchangeRateProvider. isAvailable(CurrencyUnit base, CurrencyUnit term)Checks if anExchangeRatebetween twoCurrencyUnitis available from this provider.static booleanMonetaryConversions. isConversionAvailable(CurrencyUnit termCurrency, java.lang.String... providers)Checks if aCurrencyConversionis available for the given parameters.ConversionQueryBuilderConversionQueryBuilder. setBaseCurrency(CurrencyUnit currency)Sets the base currency.ConversionQueryBuilderConversionQueryBuilder. setTermCurrency(CurrencyUnit currency)Sets the term currency.Constructors in javax.money.convert with parameters of type CurrencyUnit Constructor Description CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext)Constructs anCurrencyConversionExceptionwith the specified source and target currency.CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext, java.lang.String message)Constructs anCurrencyConversionExceptionwith the specified detail message, timestamp, source and target currency.CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext, java.lang.String message, java.lang.Throwable cause)Constructs a new exception with the specified source and target currency, detail message and cause. -
Uses of CurrencyUnit in javax.money.spi
Methods in javax.money.spi that return CurrencyUnit Modifier and Type Method Description default CurrencyUnitMonetaryCurrenciesSingletonSpi. getCurrency(java.lang.String currencyCode, java.lang.String... providers)Access a new instance based on the currency code.default CurrencyUnitMonetaryCurrenciesSingletonSpi. getCurrency(java.util.Locale country, java.lang.String... providers)Access a new instance based on the currency code.default CurrencyUnitMonetaryCurrenciesSingletonSpi. getCurrency(CurrencyQuery query)Access a single currency by query.Methods in javax.money.spi that return types with arguments of type CurrencyUnit Modifier and Type Method Description java.util.Set<CurrencyUnit>CurrencyProviderSpi. getCurrencies(CurrencyQuery query)Return aCurrencyUnitinstances matching the givenCurrencyContext.default java.util.Set<CurrencyUnit>MonetaryCurrenciesSingletonSpi. getCurrencies(java.lang.String... providers)Provide access to all currently known currencies.default java.util.Set<CurrencyUnit>MonetaryCurrenciesSingletonSpi. getCurrencies(java.util.Locale locale, java.lang.String... providers)Provide access to all currently known currencies.java.util.Set<CurrencyUnit>MonetaryCurrenciesSingletonSpi. getCurrencies(CurrencyQuery query)Access all currencies matching the given query.Methods in javax.money.spi with parameters of type CurrencyUnit Modifier and Type Method Description default CurrencyConversionMonetaryConversionsSingletonSpi. getConversion(CurrencyUnit termCurrency, java.lang.String... providers)Access an instance ofCurrencyConversion.default MonetaryRoundingMonetaryRoundingsSingletonSpi. getRounding(CurrencyUnit currencyUnit, java.lang.String... providers)Access aMonetaryRoundingfor roundingMonetaryAmountinstances given a currency.default booleanMonetaryConversionsSingletonSpi. isConversionAvailable(CurrencyUnit termCurrency, java.lang.String... providers)Allows to quickly check, if aCurrencyConversionis accessible for the givenConversionQuery.default booleanMonetaryRoundingsSingletonSpi. isRoundingAvailable(CurrencyUnit currencyUnit, java.lang.String... providers)Checks if aMonetaryRoundingis available given aCurrencyUnit.