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 BigMoney
Adds twoBigMoney
objects, 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 BigMoney
Finds the maximumBigMoney
value, handing null.static BigMoney
Finds the minimumBigMoney
value, 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 BigMoney
BigMoney.of
(BigMoneyProvider moneyProvider) Obtains an instance ofBigMoney
from a provider.static BigMoney
BigMoney.of
(CurrencyUnit currency, double amount) Obtains an instance ofBigMoney
from adouble
using a well-defined conversion.static BigMoney
BigMoney.of
(CurrencyUnit currency, BigDecimal amount) Obtains an instance ofBigMoney
from aBigDecimal
.static BigMoney
BigMoney.ofMajor
(CurrencyUnit currency, long amountMajor) Obtains an instance ofBigMoney
from an amount in major units.static BigMoney
BigMoney.ofMinor
(CurrencyUnit currency, long amountMinor) Obtains an instance ofBigMoney
from an amount in minor units.static BigMoney
BigMoney.ofScale
(CurrencyUnit currency, long unscaledAmount, int scale) Obtains an instance ofBigMoney
from a scaled amount.static BigMoney
BigMoney.ofScale
(CurrencyUnit currency, BigDecimal amount, int scale) Obtains an instance ofBigMoney
from aBigDecimal
at a specific scale.static BigMoney
BigMoney.ofScale
(CurrencyUnit currency, BigDecimal amount, int scale, RoundingMode roundingMode) Obtains an instance ofBigMoney
from adouble
using a well-defined conversion, rounding as necessary.static BigMoney
Parses an instance ofBigMoney
from 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 BigMoney
Subtracts the secondBigMoney
from the first, handling null.BigMoney.toBigMoney()
Implements theBigMoneyProvider
interface, trivially returningthis
.BigMoneyProvider.toBigMoney()
Returns aBigMoney
instance equivalent to the value of this object.Money.toBigMoney()
Implements theBigMoneyProvider
interface, returning aBigMoney
instance with the same currency, amount and scale.static BigMoney
BigMoney.total
(Iterable<? extends BigMoneyProvider> monies) Obtains an instance ofBigMoney
as the total value of a collection.static BigMoney
BigMoney.total
(BigMoneyProvider... monies) Obtains an instance ofBigMoney
as the total value of an array.static BigMoney
BigMoney.total
(CurrencyUnit currency, Iterable<? extends BigMoneyProvider> monies) Obtains an instance ofMoney
as the total value of a possibly empty collection.static BigMoney
BigMoney.total
(CurrencyUnit currency, BigMoneyProvider... monies) Obtains an instance ofMoney
as 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 BigMoney
BigMoney.zero
(CurrencyUnit currency) Obtains an instance ofBigMoney
representing zero.static BigMoney
BigMoney.zero
(CurrencyUnit currency, int scale) Obtains an instance ofBigMoney
representing 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 TypeMethodDescriptionvoid
MoneyPrinter.print
(MoneyPrintContext context, Appendable appendable, BigMoney money) Prints part of a monetary value to the output appendable.