| Package | Description |
|---|---|
| com.opengamma.strata.basics.currency |
Representations of currency and money.
|
| Modifier and Type | Method and Description |
|---|---|
BigMoney |
BigMoney.convertedTo(Currency resultCurrency,
BigDecimal fxRate)
Converts this amount to an equivalent amount the specified currency.
|
BigMoney |
BigMoney.convertedTo(Currency resultCurrency,
Decimal fxRate)
Converts this amount to an equivalent amount the specified currency.
|
BigMoney |
BigMoney.convertedTo(Currency resultCurrency,
FxRateProvider rateProvider)
Converts this amount to an equivalent amount in the specified currency.
|
BigMoney |
BigMoney.map(UnaryOperator<Decimal> mapper)
Applies an operation to the amount.
|
BigMoney |
BigMoney.mapAmount(UnaryOperator<BigDecimal> mapper)
Deprecated.
Use
map(UnaryOperator), potentially using a lambda decimal -> decimal.mapAsBigDecimal(mapper) |
BigMoney |
BigMoney.minus(BigMoney amountToSubtract)
Returns a copy of this
BigMoney with the specified amount subtracted. |
BigMoney |
BigMoney.multipliedBy(long valueToMultiplyBy)
Returns a copy of this
BigMoney with the amount multiplied. |
BigMoney |
BigMoney.negated()
Returns a copy of this
BigMoney with the amount negated. |
BigMoney |
BigMoney.negative()
Returns a copy of this
BigMoney with a negative amount. |
static BigMoney |
BigMoney.of(CurrencyAmount currencyAmount)
Obtains an instance of
BigMoney for the specified CurrencyAmount. |
static BigMoney |
BigMoney.of(Currency currency,
BigDecimal amount)
Obtains an instance of
BigMoney for the specified currency and amount. |
static BigMoney |
BigMoney.of(Currency currency,
Decimal amount)
Obtains an instance of
BigMoney for the specified currency and amount. |
static BigMoney |
BigMoney.of(Currency currency,
double amount)
Obtains an instance of
BigMoney for the specified currency and amount. |
static BigMoney |
BigMoney.of(Money money)
Obtains an instance of
BigMoney for the specified Money. |
static BigMoney |
BigMoney.parse(String amountStr)
Parses the string to produce a
BigMoney. |
BigMoney |
BigMoney.plus(BigMoney amountToAdd)
Returns a copy of this
BigMoney with the specified amount added. |
BigMoney |
BigMoney.positive()
Returns a copy of this
BigMoney with a positive amount. |
BigMoney |
BigMoney.roundToScale(int desiredScale,
RoundingMode roundingMode)
Returns a copy of this
BigMoney with the amount rounded to the specified scale. |
BigMoney |
Money.toBigMoney()
Converts this monetary amount to the equivalent
BigMoney. |
BigMoney |
CurrencyAmount.toBigMoney()
Converts this monetary amount to the equivalent
BigMoney. |
static BigMoney |
BigMoney.zero(Currency currency)
Obtains a zero amount instance of
BigMoney for the specified currency. |
| Modifier and Type | Method and Description |
|---|---|
int |
BigMoney.compareTo(BigMoney other)
Compares this money to another.
|
boolean |
BigMoney.isGreaterThan(BigMoney otherAmount)
Checks if this amount is greater than the other amount.
|
boolean |
BigMoney.isGreaterThanEqualTo(BigMoney otherAmount)
Checks if this amount is greater than or equal to the other amount.
|
boolean |
BigMoney.isLessThan(BigMoney otherAmount)
Checks if this amount is less than the other amount.
|
boolean |
BigMoney.isLessThanEqualTo(BigMoney otherAmount)
Checks if this amount is less than or equal to the other amount.
|
BigMoney |
BigMoney.minus(BigMoney amountToSubtract)
Returns a copy of this
BigMoney with the specified amount subtracted. |
static Money |
Money.of(BigMoney money)
Obtains an instance of
Money for the specified BigMoney. |
BigMoney |
BigMoney.plus(BigMoney amountToAdd)
Returns a copy of this
BigMoney with the specified amount added. |
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.