| Package | Description |
|---|---|
| org.joda.money | |
| org.joda.money.format |
| Modifier and Type | Method | Description |
|---|---|---|
Money |
Money.abs() |
Returns a copy of this monetary value with a positive amount.
|
static Money |
MoneyUtils.add(Money money1,
Money money2) |
Adds two
Money objects, handling null. |
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.
|
Money |
Money.dividedBy(double valueToDivideBy,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value divided by the specified value.
|
Money |
Money.dividedBy(long valueToDivideBy,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value divided by the specified value.
|
Money |
Money.dividedBy(java.math.BigDecimal valueToDivideBy,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value divided by the specified value.
|
static Money |
MoneyUtils.max(Money money1,
Money money2) |
Finds the maximum
Money value, handing null. |
static Money |
MoneyUtils.min(Money money1,
Money money2) |
Finds the minimum
Money value, handing null. |
Money |
Money.minus(double amountToSubtract) |
Returns a copy of this monetary value with the amount subtracted.
|
Money |
Money.minus(double amountToSubtract,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount subtracted.
|
Money |
Money.minus(java.lang.Iterable<Money> moniesToSubtract) |
Returns a copy of this monetary value with a collection of monetary amounts subtracted.
|
Money |
Money.minus(java.math.BigDecimal amountToSubtract) |
Returns a copy of this monetary value with the amount subtracted.
|
Money |
Money.minus(java.math.BigDecimal amountToSubtract,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount subtracted.
|
Money |
Money.minus(Money moneyToSubtract) |
Returns a copy of this monetary value with the amount subtracted.
|
Money |
Money.minusMajor(long amountToSubtract) |
Returns a copy of this monetary value with the amount in major units subtracted.
|
Money |
Money.minusMinor(long amountToSubtract) |
Returns a copy of this monetary value with the amount in minor units subtracted.
|
Money |
Money.multipliedBy(double valueToMultiplyBy,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value multiplied by the specified value.
|
Money |
Money.multipliedBy(long valueToMultiplyBy) |
Returns a copy of this monetary value multiplied by the specified value.
|
Money |
Money.multipliedBy(java.math.BigDecimal valueToMultiplyBy,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value multiplied by the specified value.
|
Money |
Money.negated() |
Returns a copy of this monetary value with the amount negated.
|
static Money |
Money.of(BigMoneyProvider moneyProvider) |
Obtains an instance of
Money from a provider. |
static Money |
Money.of(BigMoneyProvider moneyProvider,
java.math.RoundingMode roundingMode) |
Obtains an instance of
Money from a provider, rounding as necessary. |
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,
java.math.RoundingMode roundingMode) |
Obtains an instance of
Money from a double using a
well-defined conversion, rounding as necessary. |
static Money |
Money.of(CurrencyUnit currency,
java.math.BigDecimal amount) |
Obtains an instance of
Money from a BigDecimal. |
static Money |
Money.of(CurrencyUnit currency,
java.math.BigDecimal amount,
java.math.RoundingMode roundingMode) |
Obtains an instance of
Money from a BigDecimal, rounding as necessary. |
static Money |
Money.ofMajor(CurrencyUnit currency,
long amountMajor) |
Obtains an instance of
Money from an amount in major units. |
static Money |
Money.ofMinor(CurrencyUnit currency,
long amountMinor) |
Obtains an instance of
Money from an amount in minor units. |
static Money |
Money.parse(java.lang.String moneyStr) |
Parses an instance of
Money from a string. |
Money |
Money.plus(double amountToAdd) |
Returns a copy of this monetary value with the amount added.
|
Money |
Money.plus(double amountToAdd,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount added.
|
Money |
Money.plus(java.lang.Iterable<Money> moniesToAdd) |
Returns a copy of this monetary value with a collection of monetary amounts added.
|
Money |
Money.plus(java.math.BigDecimal amountToAdd) |
Returns a copy of this monetary value with the amount added.
|
Money |
Money.plus(java.math.BigDecimal amountToAdd,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount added.
|
Money |
Money.plus(Money moneyToAdd) |
Returns a copy of this monetary value with the amount added.
|
Money |
Money.plusMajor(long amountToAdd) |
Returns a copy of this monetary value with the amount in major units added.
|
Money |
Money.plusMinor(long amountToAdd) |
Returns a copy of this monetary value with the amount in minor units added.
|
Money |
Money.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 Money |
MoneyUtils.subtract(Money money1,
Money money2) |
Subtracts the second
Money from the first, handling null. |
Money |
BigMoney.toMoney() |
Converts this money to an instance of
Money without rounding. |
Money |
BigMoney.toMoney(java.math.RoundingMode roundingMode) |
Converts this money to an instance of
Money. |
static Money |
Money.total(java.lang.Iterable<Money> monies) |
Obtains an instance of
Money as the total value of a collection. |
static Money |
Money.total(CurrencyUnit currency,
java.lang.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. |
static Money |
Money.total(Money... monies) |
Obtains an instance of
Money as the total value of an array. |
Money |
Money.withAmount(double amount) |
Returns a copy of this monetary value with the specified amount using a well-defined
conversion from a
double. |
Money |
Money.withAmount(double amount,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the specified amount using a well-defined
conversion from a
double. |
Money |
Money.withAmount(java.math.BigDecimal amount) |
Returns a copy of this monetary value with the specified amount.
|
Money |
Money.withAmount(java.math.BigDecimal amount,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the specified amount.
|
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.
|
static Money |
Money.zero(CurrencyUnit currency) |
Obtains an instance of
Money representing zero. |
| Modifier and Type | Method | Description |
|---|---|---|
static Money |
MoneyUtils.add(Money money1,
Money money2) |
Adds two
Money objects, handling null. |
static Money |
MoneyUtils.max(Money money1,
Money money2) |
Finds the maximum
Money value, handing null. |
static Money |
MoneyUtils.min(Money money1,
Money money2) |
Finds the minimum
Money value, handing null. |
Money |
Money.minus(Money moneyToSubtract) |
Returns a copy of this monetary value with the amount subtracted.
|
Money |
Money.plus(Money moneyToAdd) |
Returns a copy of this monetary value with the amount added.
|
static Money |
MoneyUtils.subtract(Money money1,
Money money2) |
Subtracts the second
Money from the first, handling null. |
static Money |
Money.total(CurrencyUnit currency,
Money... monies) |
Obtains an instance of
Money as the total value of
a possibly empty array. |
static Money |
Money.total(Money... monies) |
Obtains an instance of
Money as the total value of an array. |
| Modifier and Type | Method | Description |
|---|---|---|
Money |
Money.minus(java.lang.Iterable<Money> moniesToSubtract) |
Returns a copy of this monetary value with a collection of monetary amounts subtracted.
|
Money |
Money.plus(java.lang.Iterable<Money> moniesToAdd) |
Returns a copy of this monetary value with a collection of monetary amounts added.
|
static Money |
Money.total(java.lang.Iterable<Money> monies) |
Obtains an instance of
Money as the total value of a collection. |
static Money |
Money.total(CurrencyUnit currency,
java.lang.Iterable<Money> monies) |
Obtains an instance of
Money as the total value of
a possibly empty collection. |
| Modifier and Type | Method | Description |
|---|---|---|
Money |
MoneyFormatter.parseMoney(java.lang.CharSequence text) |
Fully parses the text into a
Money requiring that the parsed
amount has the correct number of decimal places. |
Copyright © 2009–2018 Joda.org. All rights reserved.