Uses of Class
org.joda.money.Money
Packages that use Money
-
Uses of Money in org.joda.money
Methods in org.joda.money that return MoneyModifier and TypeMethodDescriptionMoney.abs()
Returns a copy of this monetary value with a positive amount.static Money
Adds twoMoney
objects, handling null.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.Money.dividedBy
(double valueToDivideBy, RoundingMode roundingMode) Returns a copy of this monetary value divided by the specified value.Money.dividedBy
(long valueToDivideBy, RoundingMode roundingMode) Returns a copy of this monetary value divided by the specified value.Money.dividedBy
(BigDecimal valueToDivideBy, RoundingMode roundingMode) Returns a copy of this monetary value divided by the specified value.static Money
Finds the maximumMoney
value, handing null.static Money
Finds the minimumMoney
value, handing null.Money.minus
(double amountToSubtract) Returns a copy of this monetary value with the amount subtracted.Money.minus
(double amountToSubtract, RoundingMode roundingMode) Returns a copy of this monetary value with the amount subtracted.Returns a copy of this monetary value with a collection of monetary amounts subtracted.Money.minus
(BigDecimal amountToSubtract) Returns a copy of this monetary value with the amount subtracted.Money.minus
(BigDecimal amountToSubtract, RoundingMode roundingMode) Returns a copy of this monetary value with the amount subtracted.Returns a copy of this monetary value with the amount subtracted.Money.minusMajor
(long amountToSubtract) Returns a copy of this monetary value with the amount in major units subtracted.Money.minusMinor
(long amountToSubtract) Returns a copy of this monetary value with the amount in minor units subtracted.Money.multipliedBy
(double valueToMultiplyBy, RoundingMode roundingMode) Returns a copy of this monetary value multiplied by the specified value.Money.multipliedBy
(long valueToMultiplyBy) Returns a copy of this monetary value multiplied by the specified value.Money.multipliedBy
(BigDecimal valueToMultiplyBy, RoundingMode roundingMode) Returns a copy of this monetary value multiplied by the specified value.Money.negated()
Returns a copy of this monetary value with the amount negated.static Money
Money.of
(BigMoneyProvider moneyProvider) Obtains an instance ofMoney
from a provider.static Money
Money.of
(BigMoneyProvider moneyProvider, RoundingMode roundingMode) Obtains an instance ofMoney
from a provider, rounding as necessary.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, RoundingMode roundingMode) Obtains an instance ofMoney
from adouble
using a well-defined conversion, rounding as necessary.static Money
Money.of
(CurrencyUnit currency, BigDecimal amount) Obtains an instance ofMoney
from aBigDecimal
.static Money
Money.of
(CurrencyUnit currency, BigDecimal amount, RoundingMode roundingMode) Obtains an instance ofMoney
from aBigDecimal
, rounding as necessary.static Money
Money.ofMajor
(CurrencyUnit currency, long amountMajor) Obtains an instance ofMoney
from an amount in major units.static Money
Money.ofMinor
(CurrencyUnit currency, long amountMinor) Obtains an instance ofMoney
from an amount in minor units.static Money
Parses an instance ofMoney
from a string.Money.plus
(double amountToAdd) Returns a copy of this monetary value with the amount added.Money.plus
(double amountToAdd, RoundingMode roundingMode) Returns a copy of this monetary value with the amount added.Returns a copy of this monetary value with a collection of monetary amounts added.Money.plus
(BigDecimal amountToAdd) Returns a copy of this monetary value with the amount added.Money.plus
(BigDecimal amountToAdd, RoundingMode roundingMode) Returns a copy of this monetary value with the amount added.Returns a copy of this monetary value with the amount added.Money.plusMajor
(long amountToAdd) Returns a copy of this monetary value with the amount in major units added.Money.plusMinor
(long amountToAdd) Returns a copy of this monetary value with the amount in minor units added.Money.rounded
(int scale, RoundingMode roundingMode) Returns a copy of this monetary value rounded to the specified scale without changing the current scale.static Money
Subtracts the secondMoney
from the first, handling null.BigMoney.toMoney()
Converts this money to an instance ofMoney
without rounding.BigMoney.toMoney
(RoundingMode roundingMode) Converts this money to an instance ofMoney
.static Money
Obtains an instance ofMoney
as the total value of a collection.static Money
Money.total
(CurrencyUnit currency, 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.static Money
Obtains an instance ofMoney
as the total value of an array.Money.withAmount
(double amount) Returns a copy of this monetary value with the specified amount using a well-defined conversion from adouble
.Money.withAmount
(double amount, RoundingMode roundingMode) Returns a copy of this monetary value with the specified amount using a well-defined conversion from adouble
.Money.withAmount
(BigDecimal amount) Returns a copy of this monetary value with the specified amount.Money.withAmount
(BigDecimal amount, RoundingMode roundingMode) Returns a copy of this monetary value with the specified amount.Money.withCurrencyUnit
(CurrencyUnit currency) Returns a copy of this monetary value with the specified currency.Money.withCurrencyUnit
(CurrencyUnit currency, RoundingMode roundingMode) Returns a copy of this monetary value with the specified currency.static Money
Money.zero
(CurrencyUnit currency) Obtains an instance ofMoney
representing zero.Methods in org.joda.money with parameters of type MoneyModifier and TypeMethodDescriptionstatic Money
Adds twoMoney
objects, handling null.static Money
Finds the maximumMoney
value, handing null.static Money
Finds the minimumMoney
value, handing null.Returns a copy of this monetary value with the amount subtracted.Returns a copy of this monetary value with the amount added.static Money
Subtracts the secondMoney
from the first, handling null.static Money
Money.total
(CurrencyUnit currency, Money... monies) Obtains an instance ofMoney
as the total value of a possibly empty array.static Money
Obtains an instance ofMoney
as the total value of an array.Method parameters in org.joda.money with type arguments of type MoneyModifier and TypeMethodDescriptionReturns a copy of this monetary value with a collection of monetary amounts subtracted.Returns a copy of this monetary value with a collection of monetary amounts added.static Money
Obtains an instance ofMoney
as the total value of a collection.static Money
Money.total
(CurrencyUnit currency, Iterable<Money> monies) Obtains an instance ofMoney
as the total value of a possibly empty collection. -
Uses of Money in org.joda.money.format
Methods in org.joda.money.format that return MoneyModifier and TypeMethodDescriptionMoneyFormatter.parseMoney
(CharSequence text) Fully parses the text into aMoney
requiring that the parsed amount has the correct number of decimal places.