BigMoney |
BigMoney.abs() |
Returns a copy of this monetary value with a positive amount.
|
static BigMoney |
MoneyUtils.add(BigMoney money1,
BigMoney money2) |
Adds two BigMoney objects, handling null.
|
BigMoney |
BigMoney.convertedTo(CurrencyUnit currency,
BigDecimal conversionMultipler) |
Returns a copy of this monetary value converted into another currency
using the specified conversion rate.
|
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.
|
BigMoney |
BigMoney.dividedBy(double valueToDivideBy,
RoundingMode roundingMode) |
Returns a copy of this monetary value divided by the specified value
using the specified rounding mode to adjust the scale.
|
BigMoney |
BigMoney.dividedBy(long valueToDivideBy,
RoundingMode roundingMode) |
Returns a copy of this monetary value divided by the specified value
using the specified rounding mode to adjust the decimal places in the result.
|
BigMoney |
BigMoney.dividedBy(BigDecimal valueToDivideBy,
RoundingMode roundingMode) |
Returns a copy of this monetary value divided by the specified value
using the specified rounding mode to adjust the scale.
|
static BigMoney |
MoneyUtils.max(BigMoney money1,
BigMoney money2) |
Finds the maximum BigMoney value, handing null.
|
static BigMoney |
MoneyUtils.min(BigMoney money1,
BigMoney money2) |
Finds the minimum BigMoney value, handing null.
|
BigMoney |
BigMoney.minus(double amountToSubtract) |
Returns a copy of this monetary value with the amount subtracted.
|
BigMoney |
BigMoney.minus(Iterable<? extends BigMoneyProvider> moniesToSubtract) |
Returns a copy of this monetary value with a collection of monetary amounts subtracted.
|
BigMoney |
BigMoney.minus(BigDecimal amountToSubtract) |
Returns a copy of this monetary value with the amount subtracted.
|
BigMoney |
BigMoney.minus(BigMoneyProvider moneyToSubtract) |
Returns a copy of this monetary value with the amount subtracted.
|
BigMoney |
BigMoney.minusMajor(long amountToSubtract) |
Returns a copy of this monetary value with the amount in major units subtracted.
|
BigMoney |
BigMoney.minusMinor(long amountToSubtract) |
Returns a copy of this monetary value with the amount in minor units subtracted.
|
BigMoney |
BigMoney.minusRetainScale(double amountToSubtract,
RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount subtracted retaining
the scale by rounding the result.
|
BigMoney |
BigMoney.minusRetainScale(BigDecimal amountToSubtract,
RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount subtracted retaining
the scale by rounding the result.
|
BigMoney |
BigMoney.minusRetainScale(BigMoneyProvider moneyToSubtract,
RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount in the same currency subtracted
retaining the scale by rounding the result.
|
BigMoney |
BigMoney.multipliedBy(double valueToMultiplyBy) |
Returns a copy of this monetary value multiplied by the specified value.
|
BigMoney |
BigMoney.multipliedBy(long valueToMultiplyBy) |
Returns a copy of this monetary value multiplied by the specified value.
|
BigMoney |
BigMoney.multipliedBy(BigDecimal valueToMultiplyBy) |
Returns a copy of this monetary value multiplied by the specified value.
|
BigMoney |
BigMoney.multiplyRetainScale(double valueToMultiplyBy,
RoundingMode roundingMode) |
Returns a copy of this monetary value multiplied by the specified value
using the specified rounding mode to adjust the scale of the result.
|
BigMoney |
BigMoney.multiplyRetainScale(BigDecimal valueToMultiplyBy,
RoundingMode roundingMode) |
Returns a copy of this monetary value multiplied by the specified value
using the specified rounding mode to adjust the scale of the result.
|
BigMoney |
BigMoney.negated() |
Returns a copy of this monetary value with the amount negated.
|
static BigMoney |
BigMoney.of(BigMoneyProvider moneyProvider) |
Obtains an instance of BigMoney from a provider.
|
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 BigMoney |
BigMoney.ofMajor(CurrencyUnit currency,
long amountMajor) |
Obtains an instance of BigMoney 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 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 BigMoney |
BigMoney.parse(String moneyStr) |
Parses an instance of BigMoney from a string.
|
BigMoney |
BigMoney.plus(double amountToAdd) |
Returns a copy of this monetary value with the amount added.
|
BigMoney |
BigMoney.plus(Iterable<? extends BigMoneyProvider> moniesToAdd) |
Returns a copy of this monetary value with a collection of monetary amounts added.
|
BigMoney |
BigMoney.plus(BigDecimal amountToAdd) |
Returns a copy of this monetary value with the amount added.
|
BigMoney |
BigMoney.plus(BigMoneyProvider moneyToAdd) |
Returns a copy of this monetary value with the amount added.
|
BigMoney |
BigMoney.plusMajor(long amountToAdd) |
Returns a copy of this monetary value with the amount in major units added.
|
BigMoney |
BigMoney.plusMinor(long amountToAdd) |
Returns a copy of this monetary value with the amount in minor units added.
|
BigMoney |
BigMoney.plusRetainScale(double amountToAdd,
RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount added retaining
the scale by rounding the result.
|
BigMoney |
BigMoney.plusRetainScale(BigDecimal amountToAdd,
RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount added retaining
the scale by rounding the result.
|
BigMoney |
BigMoney.plusRetainScale(BigMoneyProvider moneyToAdd,
RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount in the same currency added
retaining the scale by rounding the result.
|
BigMoney |
BigMoney.rounded(int scale,
RoundingMode roundingMode) |
Returns a copy of this monetary value rounded to the specified scale without
changing the current scale.
|
static BigMoney |
MoneyUtils.subtract(BigMoney money1,
BigMoney money2) |
Subtracts the second BigMoney from the first, handling null.
|
BigMoney |
BigMoney.toBigMoney() |
Implements the BigMoneyProvider interface, trivially
returning this .
|
BigMoney |
BigMoneyProvider.toBigMoney() |
Returns a BigMoney instance equivalent to the value of this object.
|
BigMoney |
Money.toBigMoney() |
Implements the BigMoneyProvider interface, returning a
BigMoney instance with the same currency, amount and scale.
|
static BigMoney |
BigMoney.total(Iterable<? extends BigMoneyProvider> monies) |
Obtains an instance of BigMoney as the total value of a collection.
|
static BigMoney |
BigMoney.total(BigMoneyProvider... monies) |
Obtains an instance of BigMoney as the total value of an array.
|
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.
|
BigMoney |
BigMoney.withAmount(double amount) |
Returns a copy of this monetary value with the specified amount using a well-defined
conversion from a double .
|
BigMoney |
BigMoney.withAmount(BigDecimal amount) |
Returns a copy of this monetary value with the specified amount.
|
BigMoney |
BigMoney.withCurrencyScale() |
Returns a copy of this monetary value with the scale of the currency,
truncating the amount if necessary.
|
BigMoney |
BigMoney.withCurrencyScale(RoundingMode roundingMode) |
Returns a copy of this monetary value with the scale of the currency,
using the specified rounding mode if necessary.
|
BigMoney |
BigMoney.withCurrencyUnit(CurrencyUnit currency) |
Returns a copy of this monetary value with the specified currency.
|
BigMoney |
BigMoney.withScale(int scale) |
Returns a copy of this monetary value with the specified scale,
truncating the amount if necessary.
|
BigMoney |
BigMoney.withScale(int scale,
RoundingMode roundingMode) |
Returns a copy of this monetary value with the specified scale,
using the specified rounding mode if necessary.
|
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.
|