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 CurrencyUnit
CurrencyUnit. AUD
The currency 'AUD' - Australian Dollar.static CurrencyUnit
CurrencyUnit. CAD
The currency 'CAD' - Canadian Dollar.static CurrencyUnit
CurrencyUnit. CHF
The currency 'CHF' - Swiss Franc.private CurrencyUnit
BigMoney. currency
The currency, not null.static CurrencyUnit
CurrencyUnit. EUR
The currency 'EUR' - Euro.private CurrencyUnit
CurrencyMismatchException. firstCurrency
First currency.static CurrencyUnit
CurrencyUnit. GBP
The currency 'GBP' - British pound.static CurrencyUnit
CurrencyUnit. JPY
The currency 'JPY' - Japanese Yen.private CurrencyUnit
CurrencyMismatchException. secondCurrency
Second currency.static CurrencyUnit
CurrencyUnit. USD
The 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. currenciesByCode
Map of registered currencies by text code.private static java.util.concurrent.ConcurrentMap<java.lang.String,CurrencyUnit>
CurrencyUnit. currenciesByCountry
Map of registered currencies by country.private static java.util.concurrent.ConcurrentMap<java.lang.Integer,CurrencyUnit>
CurrencyUnit. currenciesByNumericCode
Map of registered currencies by numeric code.Methods in org.joda.money that return CurrencyUnit Modifier and Type Method Description CurrencyUnit
BigMoney. getCurrencyUnit()
Gets the currency.CurrencyUnit
Money. getCurrencyUnit()
Gets the currency.CurrencyUnit
CurrencyMismatchException. getFirstCurrency()
Gets the first currency at fault.CurrencyUnit
CurrencyMismatchException. getSecondCurrency()
Gets the second currency at fault.static CurrencyUnit
CurrencyUnit. of(java.lang.String currencyCode)
Obtains an instance ofCurrencyUnit
for the specified three letter currency code.static CurrencyUnit
CurrencyUnit. of(java.util.Currency currency)
Obtains an instance ofCurrencyUnit
matching the specified JDK currency.static CurrencyUnit
CurrencyUnit. of(java.util.Locale locale)
Obtains an instance ofCurrencyUnit
for the specified locale.static CurrencyUnit
CurrencyUnit. ofCountry(java.lang.String countryCode)
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(java.lang.String numericCurrencyCode)
Obtains an instance ofCurrencyUnit
for the specified ISO-4217 numeric currency code.private CurrencyUnit
Ser. readCurrency(java.io.ObjectInput in)
static CurrencyUnit
CurrencyUnit. registerCurrency(java.lang.String currencyCode, int numericCurrencyCode, int decimalPlaces, boolean force)
Registers a currency allowing it to be used, allowing replacement.static CurrencyUnit
CurrencyUnit. 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 CurrencyUnit
CurrencyUnit. 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 int
CurrencyUnit. compareTo(CurrencyUnit other)
Compares this currency to another by alphabetical comparison of the code.BigMoney
BigMoney. convertedTo(CurrencyUnit currency, java.math.BigDecimal conversionMultipler)
Returns a copy of this monetary value converted into another currency using the specified conversion rate.Money
Money. 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.BigMoney
BigMoney. 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 BigMoney
BigMoney. of(CurrencyUnit currency, double amount)
Obtains an instance ofBigMoney
from adouble
using a well-defined conversion.static BigMoney
BigMoney. of(CurrencyUnit currency, java.math.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, java.math.RoundingMode roundingMode)
Obtains an instance ofMoney
from adouble
using a well-defined conversion, rounding as necessary.static Money
Money. of(CurrencyUnit currency, java.math.BigDecimal amount)
Obtains an instance ofMoney
from aBigDecimal
.static Money
Money. of(CurrencyUnit currency, java.math.BigDecimal amount, java.math.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, java.math.BigDecimal amount, int scale)
Obtains an instance ofBigMoney
from aBigDecimal
at a specific scale.static BigMoney
BigMoney. ofScale(CurrencyUnit currency, java.math.BigDecimal amount, int scale, java.math.RoundingMode roundingMode)
Obtains an instance ofBigMoney
from adouble
using a well-defined conversion, rounding as necessary.static void
CurrencyUnit. registerCountry(java.lang.String countryCode, CurrencyUnit currency)
Registers a country code, typically ISO 3166-1-alpha-2.static BigMoney
BigMoney. total(CurrencyUnit currency, java.lang.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, java.lang.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
BigMoney. withCurrencyUnit(CurrencyUnit currency)
Returns a copy of this monetary value with the specified currency.Money
Money. withCurrencyUnit(CurrencyUnit currency)
Returns a copy of this monetary value with the specified currency.Money
Money. withCurrencyUnit(CurrencyUnit currency, java.math.RoundingMode roundingMode)
Returns a copy of this monetary value with the specified currency.private void
Ser. writeCurrency(java.io.ObjectOutput out, CurrencyUnit obj)
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 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 CurrencyUnit
MoneyParseContext. currency
The parsed currency.Methods in org.joda.money.format that return CurrencyUnit Modifier and Type Method Description CurrencyUnit
MoneyParseContext. getCurrency()
Gets the parsed currency.Methods in org.joda.money.format with parameters of type CurrencyUnit Modifier and Type Method Description void
MoneyParseContext. 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.
-