| Package | Description |
|---|---|
| com.opengamma.strata.basics.currency |
Representations of currency and money.
|
| Modifier and Type | Method and Description |
|---|---|
static MultiCurrencyAmount |
MultiCurrencyAmount.empty()
Obtains an empty
MultiCurrencyAmount. |
MultiCurrencyAmount |
MultiCurrencyAmountArray.get(int index)
Gets the amount at the specified index.
|
MultiCurrencyAmount |
MultiCurrencyAmount.mapAmounts(DoubleUnaryOperator mapper)
Applies an operation to the amounts.
|
MultiCurrencyAmount |
MultiCurrencyAmount.mapCurrencyAmounts(UnaryOperator<CurrencyAmount> operator)
Applies an operation to the currency amounts.
|
MultiCurrencyAmount |
MultiCurrencyAmount.minus(CurrencyAmount amountToSubtract)
Returns a copy of this
MultiCurrencyAmount with the specified amount subtracted. |
MultiCurrencyAmount |
MultiCurrencyAmount.minus(Currency currency,
double amountToAdd)
Returns a copy of this
MultiCurrencyAmount with the specified amount subtracted. |
MultiCurrencyAmount |
MultiCurrencyAmount.minus(MultiCurrencyAmount amountToSubtract)
Returns a copy of this
MultiCurrencyAmount with the specified amount subtracted. |
MultiCurrencyAmount |
MultiCurrencyAmount.multipliedBy(double factor)
Returns a copy of this
MultiCurrencyAmount with all the amounts multiplied by the factor. |
MultiCurrencyAmount |
MultiCurrencyAmount.negated()
Returns a copy of this
CurrencyAmount with the amount negated. |
static MultiCurrencyAmount |
MultiCurrencyAmount.of(CurrencyAmount... amounts)
Obtains an instance from an array of
CurrencyAmount objects. |
static MultiCurrencyAmount |
MultiCurrencyAmount.of(Currency currency,
double amount)
Obtains an instance from a currency and amount.
|
static MultiCurrencyAmount |
MultiCurrencyAmount.of(Iterable<CurrencyAmount> amounts)
Obtains an instance from a list of
CurrencyAmount objects. |
static MultiCurrencyAmount |
MultiCurrencyAmount.of(Map<Currency,Double> map)
Obtains an instance from a map of currency to amount.
|
MultiCurrencyAmount |
MultiCurrencyAmount.plus(CurrencyAmount amountToAdd)
Returns a copy of this
MultiCurrencyAmount with the specified amount added. |
MultiCurrencyAmount |
MultiCurrencyAmount.plus(Currency currency,
double amountToAdd)
Returns a copy of this
MultiCurrencyAmount with the specified amount added. |
MultiCurrencyAmount |
MultiCurrencyAmount.plus(MultiCurrencyAmount amountToAdd)
Returns a copy of this
MultiCurrencyAmount with the specified amount added. |
static MultiCurrencyAmount |
MultiCurrencyAmount.total(Iterable<CurrencyAmount> amounts)
Obtains an instance from the total of a list of
CurrencyAmount objects. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends MultiCurrencyAmount> |
MultiCurrencyAmount.Meta.beanType() |
org.joda.beans.BeanBuilder<? extends MultiCurrencyAmount> |
MultiCurrencyAmount.Meta.builder() |
Stream<MultiCurrencyAmount> |
MultiCurrencyAmountArray.stream()
Returns a stream of the amounts.
|
static Collector<CurrencyAmount,?,MultiCurrencyAmount> |
MultiCurrencyAmount.toMultiCurrencyAmount()
Returns a collector that can be used to create a multi-currency amount from a stream of amounts.
|
| Modifier and Type | Method and Description |
|---|---|
CurrencyAmount |
FxMatrix.convert(MultiCurrencyAmount amount,
Currency targetCurrency)
Converts a
MultipleCurrencyAmount into an amount in the
specified currency using the rates in this matrix. |
MultiCurrencyAmountArray |
MultiCurrencyAmountArray.minus(MultiCurrencyAmount amount)
Returns a new array containing the values from this array with the values from the amount subtracted.
|
MultiCurrencyAmount |
MultiCurrencyAmount.minus(MultiCurrencyAmount amountToSubtract)
Returns a copy of this
MultiCurrencyAmount with the specified amount subtracted. |
static MultiCurrencyAmountArray |
MultiCurrencyAmountArray.of(MultiCurrencyAmount... amounts)
Obtains an instance from the specified multi-currency amounts.
|
MultiCurrencyAmountArray |
MultiCurrencyAmountArray.plus(MultiCurrencyAmount amount)
Returns a new array containing the values from this array with the values from the amount added.
|
MultiCurrencyAmount |
MultiCurrencyAmount.plus(MultiCurrencyAmount amountToAdd)
Returns a copy of this
MultiCurrencyAmount with the specified amount added. |
| Modifier and Type | Method and Description |
|---|---|
static MultiCurrencyAmountArray |
MultiCurrencyAmountArray.of(int size,
IntFunction<MultiCurrencyAmount> valueFunction)
Obtains an instance using a function to create the entries.
|
static MultiCurrencyAmountArray |
MultiCurrencyAmountArray.of(List<MultiCurrencyAmount> amounts)
Obtains an instance from the specified multi-currency amounts.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.