## Uses of Classcom.opengamma.strata.basics.currency.Money

• Packages that use Money
Package Description
com.opengamma.strata.basics.currency
Representations of currency and money.
• ### Uses of Money in com.opengamma.strata.basics.currency

Methods in com.opengamma.strata.basics.currency that return Money
Modifier and Type Method Description
Money Money.convertedTo​(Currency resultCurrency, FxRateProvider rateProvider)
Converts this amount to an equivalent amount in the specified currency.
Money Money.convertedTo​(Currency resultCurrency, BigDecimal fxRate)
Converts this amount to an equivalent amount the specified currency.
Money Money.minus​(Money amountToSubtract)
Returns a copy of this Money with the specified amount subtracted.
Money Money.multipliedBy​(long valueToMultiplyBy)
Returns a copy of this Money with the amount multiplied.
static Money Money.of​(CurrencyAmount currencyAmount)
Obtains an instance of Money for the specified CurrencyAmount.
static Money Money.of​(Currency currency, double amount)
Obtains an instance of Money for the specified currency and amount.
static Money Money.of​(Currency currency, BigDecimal amount)
Obtains an instance of Money for the specified currency and amount.
static Money Money.parse​(String amountStr)
Parses the string to produce a Money.
Money Money.plus​(Money amountToAdd)
Returns a copy of this Money with the specified amount added.
Money CurrencyAmount.toMoney()
Converts this monetary amount to the equivalent Money.
static Money Money.zero​(Currency currency)
Obtains a zero amount instance of Money for the specified currency.
Methods in com.opengamma.strata.basics.currency with parameters of type Money
Modifier and Type Method Description
int Money.compareTo​(Money other)
Compares this money to another.
Money Money.minus​(Money amountToSubtract)
Returns a copy of this Money with the specified amount subtracted.
Money Money.plus​(Money amountToAdd)
Returns a copy of this Money with the specified amount added.