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 MoneyAdds twoMoneyobjects, 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 MoneyFinds the maximumMoneyvalue, handing null.static MoneyFinds the minimumMoneyvalue, 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 MoneyMoney.of(BigMoneyProvider moneyProvider) Obtains an instance ofMoneyfrom a provider.static MoneyMoney.of(BigMoneyProvider moneyProvider, RoundingMode roundingMode) Obtains an instance ofMoneyfrom a provider, rounding as necessary.static MoneyMoney.of(CurrencyUnit currency, double amount) Obtains an instance ofMoneyfrom adoubleusing a well-defined conversion.static MoneyMoney.of(CurrencyUnit currency, double amount, RoundingMode roundingMode) Obtains an instance ofMoneyfrom adoubleusing a well-defined conversion, rounding as necessary.static MoneyMoney.of(CurrencyUnit currency, BigDecimal amount) Obtains an instance ofMoneyfrom aBigDecimal.static MoneyMoney.of(CurrencyUnit currency, BigDecimal amount, RoundingMode roundingMode) Obtains an instance ofMoneyfrom aBigDecimal, rounding as necessary.static MoneyMoney.ofMajor(CurrencyUnit currency, long amountMajor) Obtains an instance ofMoneyfrom an amount in major units.static MoneyMoney.ofMinor(CurrencyUnit currency, long amountMinor) Obtains an instance ofMoneyfrom an amount in minor units.static MoneyParses an instance ofMoneyfrom 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 MoneySubtracts the secondMoneyfrom the first, handling null.BigMoney.toMoney()Converts this money to an instance ofMoneywithout rounding.BigMoney.toMoney(RoundingMode roundingMode) Converts this money to an instance ofMoney.static MoneyObtains an instance ofMoneyas the total value of a collection.static MoneyMoney.total(CurrencyUnit currency, Iterable<Money> monies) Obtains an instance ofMoneyas the total value of a possibly empty collection.static MoneyMoney.total(CurrencyUnit currency, Money... monies) Obtains an instance ofMoneyas the total value of a possibly empty array.static MoneyObtains an instance ofMoneyas 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 MoneyMoney.zero(CurrencyUnit currency) Obtains an instance ofMoneyrepresenting zero.Methods in org.joda.money with parameters of type MoneyModifier and TypeMethodDescriptionstatic MoneyAdds twoMoneyobjects, handling null.static MoneyFinds the maximumMoneyvalue, handing null.static MoneyFinds the minimumMoneyvalue, 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 MoneySubtracts the secondMoneyfrom the first, handling null.static MoneyMoney.total(CurrencyUnit currency, Money... monies) Obtains an instance ofMoneyas the total value of a possibly empty array.static MoneyObtains an instance ofMoneyas 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 MoneyObtains an instance ofMoneyas the total value of a collection.static MoneyMoney.total(CurrencyUnit currency, Iterable<Money> monies) Obtains an instance ofMoneyas 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 aMoneyrequiring that the parsed amount has the correct number of decimal places.