Uses of Class
org.joda.money.CurrencyUnit
Packages that use CurrencyUnit
-
Uses of CurrencyUnit in org.joda.money
Fields in org.joda.money declared as CurrencyUnitModifier and TypeFieldDescriptionstatic final CurrencyUnit
CurrencyUnit.AUD
The currency 'AUD' - Australian Dollar.static final CurrencyUnit
CurrencyUnit.CAD
The currency 'CAD' - Canadian Dollar.static final CurrencyUnit
CurrencyUnit.CHF
The currency 'CHF' - Swiss Franc.static final CurrencyUnit
CurrencyUnit.EUR
The currency 'EUR' - Euro.static final CurrencyUnit
CurrencyUnit.GBP
The currency 'GBP' - British pound.static final CurrencyUnit
CurrencyUnit.JPY
The currency 'JPY' - Japanese Yen.static final CurrencyUnit
CurrencyUnit.USD
The currency 'USD' - United States Dollar.Methods in org.joda.money that return CurrencyUnitModifier and TypeMethodDescriptionBigMoney.getCurrencyUnit()
Gets the currency.Money.getCurrencyUnit()
Gets the currency.CurrencyMismatchException.getFirstCurrency()
Gets the first currency at fault.CurrencyMismatchException.getSecondCurrency()
Gets the second currency at fault.static CurrencyUnit
Obtains an instance ofCurrencyUnit
for the specified three letter currency code.static CurrencyUnit
Obtains an instance ofCurrencyUnit
matching the specified JDK currency.static CurrencyUnit
Obtains an instance ofCurrencyUnit
for the specified locale.static CurrencyUnit
Obtains an instance ofCurrencyUnit
for the specified ISO-3166 country code.static CurrencyUnit
CurrencyUnit.ofNumericCode
(int numericCurrencyCode) Obtains an instance ofCurrencyUnit
for the specified ISO-4217 numeric currency code.static CurrencyUnit
CurrencyUnit.ofNumericCode
(String numericCurrencyCode) Obtains an instance ofCurrencyUnit
for the specified ISO-4217 numeric currency code.static CurrencyUnit
CurrencyUnit.registerCurrency
(String currencyCode, int numericCurrencyCode, int decimalPlaces, boolean force) Registers a currency allowing it to be used, allowing replacement.static CurrencyUnit
CurrencyUnit.registerCurrency
(String currencyCode, int numericCurrencyCode, int decimalPlaces, List<String> countryCodes) Registers a currency and associated countries allowing it to be used.static CurrencyUnit
CurrencyUnit.registerCurrency
(String currencyCode, int numericCurrencyCode, int decimalPlaces, List<String> countryCodes, boolean force) Registers a currency and associated countries allowing it to be used, allowing replacement.Methods in org.joda.money that return types with arguments of type CurrencyUnitModifier and TypeMethodDescriptionstatic List
<CurrencyUnit> CurrencyUnit.registeredCurrencies()
Gets the list of all registered currencies.Methods in org.joda.money with parameters of type CurrencyUnitModifier and TypeMethodDescriptionint
CurrencyUnit.compareTo
(CurrencyUnit other) Compares this currency to another by alphabetical comparison of the code.BigMoney.convertedTo
(CurrencyUnit currency, BigDecimal conversionMultipler) Returns a copy of this monetary value converted into another currency using the specified conversion rate.Money.convertedTo
(CurrencyUnit currency, BigDecimal conversionMultipler, RoundingMode roundingMode) Returns a copy of this monetary value converted into another currency using the specified conversion rate, with a rounding mode used to adjust the decimal places in the result.BigMoney.convertRetainScale
(CurrencyUnit currency, BigDecimal conversionMultipler, RoundingMode roundingMode) Returns a copy of this monetary value converted into another currency using the specified conversion rate, with a rounding mode used to adjust the decimal places in the result.static BigMoney
BigMoney.of
(CurrencyUnit currency, double amount) Obtains an instance ofBigMoney
from adouble
using a well-defined conversion.static BigMoney
BigMoney.of
(CurrencyUnit currency, BigDecimal amount) Obtains an instance ofBigMoney
from aBigDecimal
.static Money
Money.of
(CurrencyUnit currency, double amount) Obtains an instance ofMoney
from adouble
using a well-defined conversion.static Money
Money.of
(CurrencyUnit currency, double amount, RoundingMode roundingMode) Obtains an instance ofMoney
from adouble
using a well-defined conversion, rounding as necessary.static Money
Money.of
(CurrencyUnit currency, BigDecimal amount) Obtains an instance ofMoney
from aBigDecimal
.static Money
Money.of
(CurrencyUnit currency, BigDecimal amount, RoundingMode roundingMode) Obtains an instance ofMoney
from aBigDecimal
, rounding as necessary.static BigMoney
BigMoney.ofMajor
(CurrencyUnit currency, long amountMajor) Obtains an instance ofBigMoney
from an amount in major units.static Money
Money.ofMajor
(CurrencyUnit currency, long amountMajor) Obtains an instance ofMoney
from an amount in major units.static BigMoney
BigMoney.ofMinor
(CurrencyUnit currency, long amountMinor) Obtains an instance ofBigMoney
from an amount in minor units.static Money
Money.ofMinor
(CurrencyUnit currency, long amountMinor) Obtains an instance ofMoney
from an amount in minor units.static BigMoney
BigMoney.ofScale
(CurrencyUnit currency, long unscaledAmount, int scale) Obtains an instance ofBigMoney
from a scaled amount.static BigMoney
BigMoney.ofScale
(CurrencyUnit currency, BigDecimal amount, int scale) Obtains an instance ofBigMoney
from aBigDecimal
at a specific scale.static BigMoney
BigMoney.ofScale
(CurrencyUnit currency, BigDecimal amount, int scale, RoundingMode roundingMode) Obtains an instance ofBigMoney
from adouble
using a well-defined conversion, rounding as necessary.static void
CurrencyUnit.registerCountry
(String countryCode, CurrencyUnit currency) Registers a country code, typically ISO 3166-1-alpha-2.static BigMoney
BigMoney.total
(CurrencyUnit currency, Iterable<? extends BigMoneyProvider> monies) Obtains an instance ofMoney
as the total value of a possibly empty collection.static BigMoney
BigMoney.total
(CurrencyUnit currency, BigMoneyProvider... monies) Obtains an instance ofMoney
as the total value of a possibly empty array.static Money
Money.total
(CurrencyUnit currency, Iterable<Money> monies) Obtains an instance ofMoney
as the total value of a possibly empty collection.static Money
Money.total
(CurrencyUnit currency, Money... monies) Obtains an instance ofMoney
as the total value of a possibly empty array.BigMoney.withCurrencyUnit
(CurrencyUnit currency) Returns a copy of this monetary value with the specified currency.Money.withCurrencyUnit
(CurrencyUnit currency) Returns a copy of this monetary value with the specified currency.Money.withCurrencyUnit
(CurrencyUnit currency, RoundingMode roundingMode) Returns a copy of this monetary value with the specified currency.static BigMoney
BigMoney.zero
(CurrencyUnit currency) Obtains an instance ofBigMoney
representing zero.static BigMoney
BigMoney.zero
(CurrencyUnit currency, int scale) Obtains an instance ofBigMoney
representing zero at a specific scale.static Money
Money.zero
(CurrencyUnit currency) Obtains an instance ofMoney
representing zero.Constructors in org.joda.money with parameters of type CurrencyUnitModifierConstructorDescriptionCurrencyMismatchException
(CurrencyUnit firstCurrency, CurrencyUnit secondCurrency) Constructor. -
Uses of CurrencyUnit in org.joda.money.format
Methods in org.joda.money.format that return CurrencyUnitMethods in org.joda.money.format with parameters of type CurrencyUnitModifier and TypeMethodDescriptionvoid
MoneyParseContext.setCurrency
(CurrencyUnit currency) Sets the parsed currency.