int |
CurrencyUnit.compareTo(CurrencyUnit other) |
Compares this currency to another by alphabetical comparison of the code.
|
BigMoney |
BigMoney.convertedTo(CurrencyUnit currency,
BigDecimal conversionMultipler) |
Returns a copy of this monetary value converted into another currency
using the specified conversion rate.
|
Money |
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 |
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 of BigMoney from a double using a well-defined conversion.
|
static BigMoney |
BigMoney.of(CurrencyUnit currency,
BigDecimal amount) |
Obtains an instance of BigMoney from a BigDecimal .
|
static Money |
Money.of(CurrencyUnit currency,
double amount) |
Obtains an instance of Money from a double using a
well-defined conversion.
|
static Money |
Money.of(CurrencyUnit currency,
double amount,
RoundingMode roundingMode) |
Obtains an instance of Money from a double using a
well-defined conversion, rounding as necessary.
|
static Money |
Money.of(CurrencyUnit currency,
BigDecimal amount) |
Obtains an instance of Money from a BigDecimal .
|
static Money |
Money.of(CurrencyUnit currency,
BigDecimal amount,
RoundingMode roundingMode) |
Obtains an instance of Money from a BigDecimal , rounding as necessary.
|
static BigMoney |
BigMoney.ofMajor(CurrencyUnit currency,
long amountMajor) |
Obtains an instance of BigMoney from an amount in major units.
|
static Money |
Money.ofMajor(CurrencyUnit currency,
long amountMajor) |
Obtains an instance of Money from an amount in major units.
|
static BigMoney |
BigMoney.ofMinor(CurrencyUnit currency,
long amountMinor) |
Obtains an instance of BigMoney from an amount in minor units.
|
static Money |
Money.ofMinor(CurrencyUnit currency,
long amountMinor) |
Obtains an instance of Money from an amount in minor units.
|
static BigMoney |
BigMoney.ofScale(CurrencyUnit currency,
long unscaledAmount,
int scale) |
Obtains an instance of BigMoney from a scaled amount.
|
static BigMoney |
BigMoney.ofScale(CurrencyUnit currency,
BigDecimal amount,
int scale) |
Obtains an instance of BigMoney from a BigDecimal at a specific scale.
|
static BigMoney |
BigMoney.ofScale(CurrencyUnit currency,
BigDecimal amount,
int scale,
RoundingMode roundingMode) |
Obtains an instance of BigMoney from a double 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 of Money as the total value of
a possibly empty collection.
|
static BigMoney |
BigMoney.total(CurrencyUnit currency,
BigMoneyProvider... monies) |
Obtains an instance of Money as the total value of
a possibly empty array.
|
static Money |
Money.total(CurrencyUnit currency,
Iterable<Money> monies) |
Obtains an instance of Money as the total value of
a possibly empty collection.
|
static Money |
Money.total(CurrencyUnit currency,
Money... monies) |
Obtains an instance of Money 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,
RoundingMode roundingMode) |
Returns a copy of this monetary value with the specified currency.
|
static BigMoney |
BigMoney.zero(CurrencyUnit currency) |
Obtains an instance of BigMoney representing zero.
|
static BigMoney |
BigMoney.zero(CurrencyUnit currency,
int scale) |
Obtains an instance of BigMoney representing zero at a specific scale.
|
static Money |
Money.zero(CurrencyUnit currency) |
Obtains an instance of Money representing zero.
|