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 CurrencyUnitCurrencyUnit.AUDThe currency 'AUD' - Australian Dollar.static final CurrencyUnitCurrencyUnit.CADThe currency 'CAD' - Canadian Dollar.static final CurrencyUnitCurrencyUnit.CHFThe currency 'CHF' - Swiss Franc.private final CurrencyUnitBigMoney.currencyThe currency, not null.static final CurrencyUnitCurrencyUnit.EURThe currency 'EUR' - Euro.private final CurrencyUnitCurrencyMismatchException.firstCurrencyFirst currency.static final CurrencyUnitCurrencyUnit.GBPThe currency 'GBP' - British pound.static final CurrencyUnitCurrencyUnit.JPYThe currency 'JPY' - Japanese Yen.private final CurrencyUnitCurrencyMismatchException.secondCurrencySecond currency.static final CurrencyUnitCurrencyUnit.USDThe currency 'USD' - United States Dollar.Fields in org.joda.money with type parameters of type CurrencyUnitModifier and TypeFieldDescriptionprivate static final ConcurrentMap<String, CurrencyUnit> CurrencyUnit.currenciesByCodeMap of registered currencies by text code.private static final ConcurrentMap<String, CurrencyUnit> CurrencyUnit.currenciesByCountryMap of registered currencies by country.private static final ConcurrentMap<Integer, CurrencyUnit> CurrencyUnit.currenciesByNumericCodeMap of registered currencies by numeric code.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 CurrencyUnitObtains an instance ofCurrencyUnitfor the specified three letter currency code.static CurrencyUnitObtains an instance ofCurrencyUnitmatching the specified JDK currency.static CurrencyUnitObtains an instance ofCurrencyUnitfor the specified locale.static CurrencyUnitObtains an instance ofCurrencyUnitfor the specified ISO-3166 country code.static CurrencyUnitCurrencyUnit.ofNumericCode(int numericCurrencyCode) Obtains an instance ofCurrencyUnitfor the specified ISO-4217 numeric currency code.static CurrencyUnitCurrencyUnit.ofNumericCode(String numericCurrencyCode) Obtains an instance ofCurrencyUnitfor the specified ISO-4217 numeric currency code.private CurrencyUnitSer.readCurrency(ObjectInput in) static CurrencyUnitCurrencyUnit.registerCurrency(String currencyCode, int numericCurrencyCode, int decimalPlaces, boolean force) Registers a currency allowing it to be used, allowing replacement.static CurrencyUnitCurrencyUnit.registerCurrency(String currencyCode, int numericCurrencyCode, int decimalPlaces, List<String> countryCodes) Registers a currency and associated countries allowing it to be used.static CurrencyUnitCurrencyUnit.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 TypeMethodDescriptionintCurrencyUnit.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 BigMoneyBigMoney.of(CurrencyUnit currency, double amount) Obtains an instance ofBigMoneyfrom adoubleusing a well-defined conversion.static BigMoneyBigMoney.of(CurrencyUnit currency, BigDecimal amount) Obtains an instance ofBigMoneyfrom aBigDecimal.static MoneyMoney.of(CurrencyUnit currency, double amount) Obtains an instance ofMoneyfrom adoubleusing a well-defined conversion.static MoneyMoney.of(CurrencyUnit currency, double amount, RoundingMode roundingMode) Obtains an instance ofMoneyfrom adoubleusing a well-defined conversion, rounding as necessary.static MoneyMoney.of(CurrencyUnit currency, BigDecimal amount) Obtains an instance ofMoneyfrom aBigDecimal.static MoneyMoney.of(CurrencyUnit currency, BigDecimal amount, RoundingMode roundingMode) Obtains an instance ofMoneyfrom aBigDecimal, rounding as necessary.static BigMoneyBigMoney.ofMajor(CurrencyUnit currency, long amountMajor) Obtains an instance ofBigMoneyfrom an amount in major units.static MoneyMoney.ofMajor(CurrencyUnit currency, long amountMajor) Obtains an instance ofMoneyfrom an amount in major units.static BigMoneyBigMoney.ofMinor(CurrencyUnit currency, long amountMinor) Obtains an instance ofBigMoneyfrom an amount in minor units.static MoneyMoney.ofMinor(CurrencyUnit currency, long amountMinor) Obtains an instance ofMoneyfrom an amount in minor units.static BigMoneyBigMoney.ofScale(CurrencyUnit currency, long unscaledAmount, int scale) Obtains an instance ofBigMoneyfrom a scaled amount.static BigMoneyBigMoney.ofScale(CurrencyUnit currency, BigDecimal amount, int scale) Obtains an instance ofBigMoneyfrom aBigDecimalat a specific scale.static BigMoneyBigMoney.ofScale(CurrencyUnit currency, BigDecimal amount, int scale, RoundingMode roundingMode) Obtains an instance ofBigMoneyfrom adoubleusing a well-defined conversion, rounding as necessary.static voidCurrencyUnit.registerCountry(String countryCode, CurrencyUnit currency) Registers a country code, typically ISO 3166-1-alpha-2.static BigMoneyBigMoney.total(CurrencyUnit currency, Iterable<? extends BigMoneyProvider> monies) Obtains an instance ofMoneyas the total value of a possibly empty collection.static BigMoneyBigMoney.total(CurrencyUnit currency, BigMoneyProvider... monies) Obtains an instance ofMoneyas the total value of a possibly empty array.static MoneyMoney.total(CurrencyUnit currency, Iterable<Money> monies) Obtains an instance ofMoneyas the total value of a possibly empty collection.static MoneyMoney.total(CurrencyUnit currency, Money... monies) Obtains an instance ofMoneyas 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.private voidSer.writeCurrency(ObjectOutput out, CurrencyUnit obj) static BigMoneyBigMoney.zero(CurrencyUnit currency) Obtains an instance ofBigMoneyrepresenting zero.static BigMoneyBigMoney.zero(CurrencyUnit currency, int scale) Obtains an instance ofBigMoneyrepresenting zero at a specific scale.static MoneyMoney.zero(CurrencyUnit currency) Obtains an instance ofMoneyrepresenting zero.Constructors in org.joda.money with parameters of type CurrencyUnitModifierConstructorDescription(package private)BigMoney(CurrencyUnit currency, BigDecimal amount) Constructor, creating a new monetary instance.CurrencyMismatchException(CurrencyUnit firstCurrency, CurrencyUnit secondCurrency) Constructor. -
Uses of CurrencyUnit in org.joda.money.format
Fields in org.joda.money.format declared as CurrencyUnitModifier and TypeFieldDescriptionprivate CurrencyUnitMoneyParseContext.currencyThe parsed currency.Methods in org.joda.money.format that return CurrencyUnitMethods in org.joda.money.format with parameters of type CurrencyUnitModifier and TypeMethodDescriptionvoidMoneyParseContext.setCurrency(CurrencyUnit currency) Sets the parsed currency.Constructors in org.joda.money.format with parameters of type CurrencyUnitModifierConstructorDescription(package private)MoneyParseContext(Locale locale, CharSequence text, int index, int errorIndex, CurrencyUnit currency, BigDecimal amount) Constructor.