Compares this Money
with thatAmount
.
Compares this Money
with thatAmount
. The comparison is made between this amount and thatAmount
the amount to compare this object with.
true if this amount is not equal to thatAmount
, false otherwise.
Compares this Money
with thatMoney
.
Compares this Money
with thatMoney
. The comparison is made between the amounts after normalizing both Money
objects to the same currency.
the Money
object to compare this object with.
true if this Money
is not equal to thatMoney
, 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 thatMoney by this money.
Multiplies thatMoney 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 thatMoney by this money after converting thatMoney 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 thatMoney.
Adds this money to thatMoney. 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 thatMoney after converting thatMoney 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 thatMoney from this money.
Subtracts thatMoney 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 thatMoney from this money after converting thatMoney 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 thatMoney.
Divides this money by thatMoney. 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 thatMoney (divisor) after converting thatMoney to this money's currency
Compares this Money
with thatAmount
.
Compares this Money
with thatAmount
. The comparison is made between this amount and thatAmount
the amount to compare this object with.
true if this amount is lesser than thatAmount
, false otherwise.
Compares this Money
with thatMoney
.
Compares this Money
with thatMoney
. The comparison is made between the amounts after normalizing both Money
objects to the same currency.
the Money
object to compare this object with.
true if this Money
is lesser than thatMoney
, false otherwise.
Compares this Money
with thatAmount
.
Compares this Money
with thatAmount
. The comparison is made between this amount and thatAmount
the amount to compare this object with.
true if this amount is lesser than or equal to thatAmount
, false otherwise.
Compares this Money
with thatMoney
.
Compares this Money
with thatMoney
. The comparison is made between the amounts after normalizing both Money
objects to the same currency.
the Money
object to compare this object with.
true if this Money
is lesser than or equal to thatMoney
, false otherwise.
Compares this Money
with thatAmount
.
Compares this Money
with thatAmount
. The comparison is made between this amount and thatAmount
the amount to compare this object with.
true if this amount is equal to thatAmount
, false otherwise.
Compares this Money
with thatMoney
.
Compares this Money
with thatMoney
. The comparison is made between the amounts after normalizing both Money
objects to the same currency.
the Money
object to compare this object with.
true if this Money
is equal to thatMoney
, false otherwise.
Compares this Money
with thatMoney
.
Compares this Money
with thatMoney
. The comparison is made between the amounts after normalizing both Money
objects to the same currency.
the Money
object to compare this object with.
true if this Money
is greater than thatMoney
, false otherwise.
Compares this Money
with thatAmount
.
Compares this Money
with thatAmount
. The comparison is made between this amount and thatAmount
the amount to compare this object with.
true if this amount is greater than thatAmount
, false otherwise.
Compares this Money
with thatMoney
.
Compares this Money
with thatMoney
. The comparison is made between the amounts after normalizing both Money
objects to the same currency.
the Money
object to compare this object with.
true if this Money
is greater than or equal to thatMoney
, false otherwise.
Compares this Money
with thatAmount
.
Compares this Money
with thatAmount
. The comparison is made between this amount and thatAmount
the amount to compare this object with.
true if this amount is greater than or equal to thatAmount
, 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
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