Uses of Class
org.joda.money.CurrencyUnit
-
Packages that use CurrencyUnit Package Description org.joda.money org.joda.money.format -
-
Uses of CurrencyUnit in org.joda.money
Fields in org.joda.money declared as CurrencyUnit Modifier and Type Field Description static CurrencyUnitCurrencyUnit. AUDThe currency 'AUD' - Australian Dollar.static CurrencyUnitCurrencyUnit. CADThe currency 'CAD' - Canadian Dollar.static CurrencyUnitCurrencyUnit. CHFThe currency 'CHF' - Swiss Franc.private CurrencyUnitBigMoney. currencyThe currency, not null.static CurrencyUnitCurrencyUnit. EURThe currency 'EUR' - Euro.private CurrencyUnitCurrencyMismatchException. firstCurrencyFirst currency.static CurrencyUnitCurrencyUnit. GBPThe currency 'GBP' - British pound.static CurrencyUnitCurrencyUnit. JPYThe currency 'JPY' - Japanese Yen.private CurrencyUnitCurrencyMismatchException. secondCurrencySecond currency.static CurrencyUnitCurrencyUnit. USDThe currency 'USD' - United States Dollar.Fields in org.joda.money with type parameters of type CurrencyUnit Modifier and Type Field Description private static java.util.concurrent.ConcurrentMap<java.lang.String,CurrencyUnit>CurrencyUnit. currenciesByCodeMap of registered currencies by text code.private static java.util.concurrent.ConcurrentMap<java.lang.String,CurrencyUnit>CurrencyUnit. currenciesByCountryMap of registered currencies by country.private static java.util.concurrent.ConcurrentMap<java.lang.Integer,CurrencyUnit>CurrencyUnit. currenciesByNumericCodeMap of registered currencies by numeric code.Methods in org.joda.money that return CurrencyUnit Modifier and Type Method Description CurrencyUnitBigMoney. getCurrencyUnit()Gets the currency.CurrencyUnitMoney. getCurrencyUnit()Gets the currency.CurrencyUnitCurrencyMismatchException. getFirstCurrency()Gets the first currency at fault.CurrencyUnitCurrencyMismatchException. getSecondCurrency()Gets the second currency at fault.static CurrencyUnitCurrencyUnit. of(java.lang.String currencyCode)Obtains an instance ofCurrencyUnitfor the specified three letter currency code.static CurrencyUnitCurrencyUnit. of(java.util.Currency currency)Obtains an instance ofCurrencyUnitmatching the specified JDK currency.static CurrencyUnitCurrencyUnit. of(java.util.Locale locale)Obtains an instance ofCurrencyUnitfor the specified locale.static CurrencyUnitCurrencyUnit. ofCountry(java.lang.String countryCode)Obtains 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(java.lang.String numericCurrencyCode)Obtains an instance ofCurrencyUnitfor the specified ISO-4217 numeric currency code.private CurrencyUnitSer. readCurrency(java.io.ObjectInput in)static CurrencyUnitCurrencyUnit. registerCurrency(java.lang.String currencyCode, int numericCurrencyCode, int decimalPlaces, boolean force)Registers a currency allowing it to be used, allowing replacement.static CurrencyUnitCurrencyUnit. registerCurrency(java.lang.String currencyCode, int numericCurrencyCode, int decimalPlaces, java.util.List<java.lang.String> countryCodes)Registers a currency and associated countries allowing it to be used.static CurrencyUnitCurrencyUnit. registerCurrency(java.lang.String currencyCode, int numericCurrencyCode, int decimalPlaces, java.util.List<java.lang.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 CurrencyUnit Modifier and Type Method Description static java.util.List<CurrencyUnit>CurrencyUnit. registeredCurrencies()Gets the list of all registered currencies.Methods in org.joda.money with parameters of type CurrencyUnit Modifier and Type Method Description intCurrencyUnit. compareTo(CurrencyUnit other)Compares this currency to another by alphabetical comparison of the code.BigMoneyBigMoney. convertedTo(CurrencyUnit currency, java.math.BigDecimal conversionMultipler)Returns a copy of this monetary value converted into another currency using the specified conversion rate.MoneyMoney. convertedTo(CurrencyUnit currency, java.math.BigDecimal conversionMultipler, java.math.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.BigMoneyBigMoney. convertRetainScale(CurrencyUnit currency, java.math.BigDecimal conversionMultipler, java.math.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, java.math.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, java.math.RoundingMode roundingMode)Obtains an instance ofMoneyfrom adoubleusing a well-defined conversion, rounding as necessary.static MoneyMoney. of(CurrencyUnit currency, java.math.BigDecimal amount)Obtains an instance ofMoneyfrom aBigDecimal.static MoneyMoney. of(CurrencyUnit currency, java.math.BigDecimal amount, java.math.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, java.math.BigDecimal amount, int scale)Obtains an instance ofBigMoneyfrom aBigDecimalat a specific scale.static BigMoneyBigMoney. ofScale(CurrencyUnit currency, java.math.BigDecimal amount, int scale, java.math.RoundingMode roundingMode)Obtains an instance ofBigMoneyfrom adoubleusing a well-defined conversion, rounding as necessary.static voidCurrencyUnit. registerCountry(java.lang.String countryCode, CurrencyUnit currency)Registers a country code, typically ISO 3166-1-alpha-2.static BigMoneyBigMoney. total(CurrencyUnit currency, java.lang.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, java.lang.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.BigMoneyBigMoney. withCurrencyUnit(CurrencyUnit currency)Returns a copy of this monetary value with the specified currency.MoneyMoney. withCurrencyUnit(CurrencyUnit currency)Returns a copy of this monetary value with the specified currency.MoneyMoney. withCurrencyUnit(CurrencyUnit currency, java.math.RoundingMode roundingMode)Returns a copy of this monetary value with the specified currency.private voidSer. writeCurrency(java.io.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 CurrencyUnit Constructor Description BigMoney(CurrencyUnit currency, java.math.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 CurrencyUnit Modifier and Type Field Description private CurrencyUnitMoneyParseContext. currencyThe parsed currency.Methods in org.joda.money.format that return CurrencyUnit Modifier and Type Method Description CurrencyUnitMoneyParseContext. getCurrency()Gets the parsed currency.Methods in org.joda.money.format with parameters of type CurrencyUnit Modifier and Type Method Description voidMoneyParseContext. setCurrency(CurrencyUnit currency)Sets the parsed currency.Constructors in org.joda.money.format with parameters of type CurrencyUnit Constructor Description MoneyParseContext(java.util.Locale locale, java.lang.CharSequence text, int index, int errorIndex, CurrencyUnit currency, java.math.BigDecimal amount)Constructor.
-