| Package | Description |
|---|---|
| org.joda.money | |
| org.joda.money.format |
| Modifier and Type | Method | Description |
|---|---|---|
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,
java.math.BigDecimal conversionMultipler) |
Returns a copy of this monetary value converted into another currency
using the specified conversion rate.
|
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.
|
BigMoney |
BigMoney.dividedBy(double valueToDivideBy,
java.math.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,
java.math.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(java.math.BigDecimal valueToDivideBy,
java.math.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(java.lang.Iterable<? extends BigMoneyProvider> moniesToSubtract) |
Returns a copy of this monetary value with a collection of monetary amounts subtracted.
|
BigMoney |
BigMoney.minus(java.math.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,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount subtracted retaining
the scale by rounding the result.
|
BigMoney |
BigMoney.minusRetainScale(java.math.BigDecimal amountToSubtract,
java.math.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,
java.math.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(java.math.BigDecimal valueToMultiplyBy) |
Returns a copy of this monetary value multiplied by the specified value.
|
BigMoney |
BigMoney.multiplyRetainScale(double valueToMultiplyBy,
java.math.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(java.math.BigDecimal valueToMultiplyBy,
java.math.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,
java.math.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,
java.math.BigDecimal amount,
int scale) |
Obtains an instance of
BigMoney from a BigDecimal at a specific scale. |
static BigMoney |
BigMoney.ofScale(CurrencyUnit currency,
java.math.BigDecimal amount,
int scale,
java.math.RoundingMode roundingMode) |
Obtains an instance of
BigMoney from a double using a
well-defined conversion, rounding as necessary. |
static BigMoney |
BigMoney.parse(java.lang.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(java.lang.Iterable<? extends BigMoneyProvider> moniesToAdd) |
Returns a copy of this monetary value with a collection of monetary amounts added.
|
BigMoney |
BigMoney.plus(java.math.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,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount added retaining
the scale by rounding the result.
|
BigMoney |
BigMoney.plusRetainScale(java.math.BigDecimal amountToAdd,
java.math.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,
java.math.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,
java.math.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(java.lang.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,
java.lang.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(java.math.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(java.math.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,
java.math.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. |
| Modifier and Type | Method | Description |
|---|---|---|
static BigMoney |
MoneyUtils.add(BigMoney money1,
BigMoney money2) |
Adds two
BigMoney objects, handling null. |
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. |
static BigMoney |
MoneyUtils.subtract(BigMoney money1,
BigMoney money2) |
Subtracts the second
BigMoney from the first, handling null. |
| Modifier and Type | Method | Description |
|---|---|---|
BigMoney |
MoneyFormatter.parseBigMoney(java.lang.CharSequence text) |
Fully parses the text into a
BigMoney. |
BigMoney |
MoneyParseContext.toBigMoney() |
Converts the context to a
BigMoney. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
MoneyPrinter.print(MoneyPrintContext context,
java.lang.Appendable appendable,
BigMoney money) |
Prints part of a monetary value to the output appendable.
|
Copyright © 2009–2018 Joda.org. All rights reserved.