- of
Obtains an instance of Money from a BigDecimal, rounding as necessary. This
allows you to create an
- zero
Obtains an instance of Money representing zero. For example, zero(USD) creates
the instance USD 0.00
- getAmount
Gets the amount. This returns the value of the money as a BigDecimal. The scale
will be the scale of
- multipliedBy
Returns a copy of this monetary value multiplied by the specified value. This
takes this amount and
- plus
Returns a copy of this monetary value with the amount added. This adds the
specified amount to this
- equals
Checks if this monetary value equals another. The comparison takes into account
the scale. The compa
- hashCode
Returns a hash code for this monetary value.
- toString
Gets the monetary value as a string. The format is the 3 letter ISO currency
code, followed by a spa
- getCurrencyUnit
Gets the currency.
- parse
Parses an instance of Money from a string. The string format is '$currencyCode
$amount' where there
- getAmountMinorLong
Gets the amount in minor units as a long. This returns the monetary amount in
terms of the minor uni
- ofMinor
Obtains an instance of Money from an amount in minor units. This allows you to
create an instance wi