Uses of Class
org.joda.money.BigMoney
Packages that use BigMoney
-
Uses of BigMoney in org.joda.money
Methods in org.joda.money that return BigMoneyModifier and TypeMethodDescriptionBigMoney.abs()Returns a copy of this monetary value with a positive amount.static BigMoneyAdds twoBigMoneyobjects, handling null.BigMoney.convertedTo(CurrencyUnit currency, BigDecimal conversionMultipler) Returns a copy of this monetary value converted into another currency using the specified conversion rate.BigMoney.convertRetainScale(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.BigMoney.dividedBy(double valueToDivideBy, RoundingMode roundingMode) Returns a copy of this monetary value divided by the specified value using the specified rounding mode to adjust the scale.BigMoney.dividedBy(long valueToDivideBy, 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.dividedBy(BigDecimal valueToDivideBy, RoundingMode roundingMode) Returns a copy of this monetary value divided by the specified value using the specified rounding mode to adjust the scale.static BigMoneyFinds the maximumBigMoneyvalue, handing null.static BigMoneyFinds the minimumBigMoneyvalue, handing null.BigMoney.minus(double amountToSubtract) Returns a copy of this monetary value with the amount subtracted.BigMoney.minus(Iterable<? extends BigMoneyProvider> moniesToSubtract) Returns a copy of this monetary value with a collection of monetary amounts subtracted.BigMoney.minus(BigDecimal amountToSubtract) Returns a copy of this monetary value with the amount subtracted.BigMoney.minus(BigMoneyProvider moneyToSubtract) Returns a copy of this monetary value with the amount subtracted.BigMoney.minusMajor(long amountToSubtract) Returns a copy of this monetary value with the amount in major units subtracted.BigMoney.minusMinor(long amountToSubtract) Returns a copy of this monetary value with the amount in minor units subtracted.BigMoney.minusRetainScale(double amountToSubtract, RoundingMode roundingMode) Returns a copy of this monetary value with the amount subtracted retaining the scale by rounding the result.BigMoney.minusRetainScale(BigDecimal amountToSubtract, RoundingMode roundingMode) Returns a copy of this monetary value with the amount subtracted retaining the scale by rounding the result.BigMoney.minusRetainScale(BigMoneyProvider moneyToSubtract, 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.multipliedBy(double valueToMultiplyBy) Returns a copy of this monetary value multiplied by the specified value.BigMoney.multipliedBy(long valueToMultiplyBy) Returns a copy of this monetary value multiplied by the specified value.BigMoney.multipliedBy(BigDecimal valueToMultiplyBy) Returns a copy of this monetary value multiplied by the specified value.BigMoney.multiplyRetainScale(double valueToMultiplyBy, 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.multiplyRetainScale(BigDecimal valueToMultiplyBy, 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.negated()Returns a copy of this monetary value with the amount negated.static BigMoneyBigMoney.of(BigMoneyProvider moneyProvider) Obtains an instance ofBigMoneyfrom a provider.static BigMoneyBigMoney.of(CurrencyUnit currency, double amount) Obtains an instance ofBigMoneyfrom adoubleusing a well-defined conversion.static BigMoneyBigMoney.of(CurrencyUnit currency, BigDecimal amount) Obtains an instance ofBigMoneyfrom aBigDecimal.static BigMoneyBigMoney.ofMajor(CurrencyUnit currency, long amountMajor) Obtains an instance ofBigMoneyfrom an amount in major units.static BigMoneyBigMoney.ofMinor(CurrencyUnit currency, long amountMinor) Obtains an instance ofBigMoneyfrom an amount in minor units.static BigMoneyBigMoney.ofScale(CurrencyUnit currency, long unscaledAmount, int scale) Obtains an instance ofBigMoneyfrom a scaled amount.static BigMoneyBigMoney.ofScale(CurrencyUnit currency, BigDecimal amount, int scale) Obtains an instance ofBigMoneyfrom aBigDecimalat a specific scale.static BigMoneyBigMoney.ofScale(CurrencyUnit currency, BigDecimal amount, int scale, RoundingMode roundingMode) Obtains an instance ofBigMoneyfrom adoubleusing a well-defined conversion, rounding as necessary.static BigMoneyParses an instance ofBigMoneyfrom a string.BigMoney.plus(double amountToAdd) Returns a copy of this monetary value with the amount added.BigMoney.plus(Iterable<? extends BigMoneyProvider> moniesToAdd) Returns a copy of this monetary value with a collection of monetary amounts added.BigMoney.plus(BigDecimal amountToAdd) Returns a copy of this monetary value with the amount added.BigMoney.plus(BigMoneyProvider moneyToAdd) Returns a copy of this monetary value with the amount added.BigMoney.plusMajor(long amountToAdd) Returns a copy of this monetary value with the amount in major units added.BigMoney.plusMinor(long amountToAdd) Returns a copy of this monetary value with the amount in minor units added.BigMoney.plusRetainScale(double amountToAdd, RoundingMode roundingMode) Returns a copy of this monetary value with the amount added retaining the scale by rounding the result.BigMoney.plusRetainScale(BigDecimal amountToAdd, RoundingMode roundingMode) Returns a copy of this monetary value with the amount added retaining the scale by rounding the result.BigMoney.plusRetainScale(BigMoneyProvider moneyToAdd, 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.rounded(int scale, RoundingMode roundingMode) Returns a copy of this monetary value rounded to the specified scale without changing the current scale.static BigMoneySubtracts the secondBigMoneyfrom the first, handling null.BigMoney.toBigMoney()Implements theBigMoneyProviderinterface, trivially returningthis.BigMoneyProvider.toBigMoney()Returns aBigMoneyinstance equivalent to the value of this object.Money.toBigMoney()Implements theBigMoneyProviderinterface, returning aBigMoneyinstance with the same currency, amount and scale.static BigMoneyBigMoney.total(Iterable<? extends BigMoneyProvider> monies) Obtains an instance ofBigMoneyas the total value of a collection.static BigMoneyBigMoney.total(BigMoneyProvider... monies) Obtains an instance ofBigMoneyas the total value of an array.static BigMoneyBigMoney.total(CurrencyUnit currency, Iterable<? extends BigMoneyProvider> monies) Obtains an instance ofMoneyas the total value of a possibly empty collection.static BigMoneyBigMoney.total(CurrencyUnit currency, BigMoneyProvider... monies) Obtains an instance ofMoneyas the total value of a possibly empty array.BigMoney.withAmount(double amount) Returns a copy of this monetary value with the specified amount using a well-defined conversion from adouble.BigMoney.withAmount(BigDecimal amount) Returns a copy of this monetary value with the specified amount.BigMoney.withCurrencyScale()Returns a copy of this monetary value with the scale of the currency, truncating the amount if necessary.BigMoney.withCurrencyScale(RoundingMode roundingMode) Returns a copy of this monetary value with the scale of the currency, using the specified rounding mode if necessary.BigMoney.withCurrencyUnit(CurrencyUnit currency) Returns a copy of this monetary value with the specified currency.BigMoney.withScale(int scale) Returns a copy of this monetary value with the specified scale, truncating the amount if necessary.BigMoney.withScale(int scale, RoundingMode roundingMode) Returns a copy of this monetary value with the specified scale, using the specified rounding mode if necessary.static BigMoneyBigMoney.zero(CurrencyUnit currency) Obtains an instance ofBigMoneyrepresenting zero.static BigMoneyBigMoney.zero(CurrencyUnit currency, int scale) Obtains an instance ofBigMoneyrepresenting zero at a specific scale.Methods in org.joda.money with parameters of type BigMoney -
Uses of BigMoney in org.joda.money.format
Methods in org.joda.money.format that return BigMoneyModifier and TypeMethodDescriptionMoneyFormatter.parseBigMoney(CharSequence text) Fully parses the text into aBigMoney.MoneyParseContext.toBigMoney()Converts the context to aBigMoney.Methods in org.joda.money.format with parameters of type BigMoneyModifier and TypeMethodDescriptionvoidMoneyPrinter.print(MoneyPrintContext context, Appendable appendable, BigMoney money) Prints part of a monetary value to the output appendable.