Uses of Class
org.joda.money.Money

Packages that use Money
Package
Description
 
 
  • Uses of Money in org.joda.money

    Methods in org.joda.money that return Money
    Modifier and Type
    Method
    Description
    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.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
    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.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.
    Money.minus(Iterable<Money> moniesToSubtract)
    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.
    Money.minus(Money moneyToSubtract)
    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 of Money from a provider.
    static Money
    Money.of(BigMoneyProvider moneyProvider, 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, RoundingMode roundingMode)
    Obtains an instance of Money from a double using a well-defined conversion, rounding as necessary.
    static Money
    Money.of(CurrencyUnit currency, BigDecimal amount)
    Obtains an instance of Money from a BigDecimal.
    static Money
    Money.of(CurrencyUnit currency, BigDecimal amount, 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(String moneyStr)
    Parses an instance of Money 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.
    Money.plus(Iterable<Money> moniesToAdd)
    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.
    Money.plus(Money moneyToAdd)
    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
    MoneyUtils.subtract(Money money1, Money money2)
    Subtracts the second Money from the first, handling null.
    BigMoney.toMoney()
    Converts this money to an instance of Money without rounding.
    BigMoney.toMoney(RoundingMode roundingMode)
    Converts this money to an instance of Money.
    static Money
    Money.total(Iterable<Money> monies)
    Obtains an instance of Money as the total value of a collection.
    static Money
    Money.total(CurrencyUnit currency, 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.withAmount(double amount)
    Returns a copy of this monetary value with the specified amount using a well-defined conversion from a double.
    Money.withAmount(double amount, RoundingMode roundingMode)
    Returns a copy of this monetary value with the specified amount using a well-defined conversion from a double.
    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.
    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 of Money representing zero.
    Methods in org.joda.money with parameters of type Money
    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.minus(Money moneyToSubtract)
    Returns a copy of this monetary value with the amount subtracted.
    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.
    Method parameters in org.joda.money with type arguments of type Money
    Modifier and Type
    Method
    Description
    Money.minus(Iterable<Money> moniesToSubtract)
    Returns a copy of this monetary value with a collection of monetary amounts subtracted.
    Money.plus(Iterable<Money> moniesToAdd)
    Returns a copy of this monetary value with a collection of monetary amounts added.
    static Money
    Money.total(Iterable<Money> monies)
    Obtains an instance of Money as the total value of a collection.
    static Money
    Money.total(CurrencyUnit currency, Iterable<Money> monies)
    Obtains an instance of Money 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 Money
    Modifier and Type
    Method
    Description
    MoneyFormatter.parseMoney(CharSequence text)
    Fully parses the text into a Money requiring that the parsed amount has the correct number of decimal places.