Compares this Money
with that
.
Compares this Money
with that
. The comparison is made between this amount and that
the amount to compare this object with.
true if this amount is not equal to that
, false otherwise.
Multiplies amount by this money.
Multiplies amount by this money.
the amount to multiply by this money
a new object which is the result of multiplying amount to this money
Multiplies that by this money.
Multiplies that by this money. The result is expressed in terms of this money's currency.
the money to multiply by this money
a new object which is the result of multiplying that by this money after converting that to this money's currency
Adds amount to this money.
Adds amount to this money.
the amount to sum to this money
a new object which is the result of summing amount to this money
Adds this money to that.
Adds this money to that. The result is expressed in terms of this money's currency.
the money to sum to this money
a new object which is the result of summing this money to that after converting that to this money's currency
Subtracts amount from this money.
Subtracts amount from this money.
the amount to sum to this money
a new object which is the result of summing amount to this money
Subtracts that from this money.
Subtracts that from this money. The result is expressed in terms of this money's currency.
the money to subtract from this money
a new object which is the result of subtracting that from this money after converting that to this money's currency
Divides amount by this money.
Divides amount by this money.
the amount to multiply by this money
a new object which is the result of multiplying amount to this money
Divides this money by that.
Divides this money by that. The result is expressed in terms of this money's currency.
the money to use ad divisor
a new object which is the result of dividing this money (dividend) by that (divisor) after converting that to this money's currency
Compares this Money
with that
.
Compares this Money
with that
. The comparison is made between this amount and that
the amount to compare this object with.
true if this amount is equal to that
, false otherwise.
the amount of this money
Converts this money to another money represented using otherCurrency
Converts this money to another money represented using otherCurrency
the currency to convert this money to
a new object where its currency is expressed in terms of otherCurrency
Compares this Money
object with that
.
Compares this Money
object with that
.
the other Money
object
a number < 1 if this < that, a number > 1 if this > that, 0 if they are equal.
the currency for this money
Rounds this Money
to the given number of decimalDigits
using the provided roundingMode
Rounds this Money
to the given number of decimalDigits
using the provided roundingMode
the number of decimal digits to keep
a new Money
object whose number of decimal digits is decimalDigits
Just an alias for apply
Formats this money object using a number of decimal digits equals to the decimalDigits param, which defaults to 5.
Formats this money object using a number of decimal digits equals to the decimalDigits param, which defaults to 5.
the number of decimal digits to include
a formatted string representing this money object
the string representation of this money which has, at most, 5 decimal digits. If you need to customize the
number of decimal digits use toFormattedString
instead
This is the main class of the lib. A Money is represented by its
amount
andcurrency
.the amount of this money
the currency for this money
the
Converter
to use2014-10-27