Package | Description |
---|---|
net.objectlab.kit.fxcalc |
New to 1.4.0: FX Market Convention and FX Rates, including cross currency calculations.
|
Modifier and Type | Class and Description |
---|---|
class |
Cash
A simple class to represent an immutable amount of a given currency.
|
Modifier and Type | Method and Description |
---|---|
CurrencyAmount |
CurrencyAmount.add(CurrencyAmount money)
Add the amount with the existing one and return a MonetaryAmount (implementation could make it immutable and return a new entity)
|
CurrencyAmount |
Cash.add(CurrencyAmount money)
Add the amount with the existing one and return a new immutable Money.
|
CurrencyAmount |
FxRateImpl.convertAmountUsingBidOrAsk(CurrencyAmount originalAmount) |
CurrencyAmount |
FxRate.convertAmountUsingBidOrAsk(CurrencyAmount originalAmount)
Given a monetary amount in the original currency, calculate the resulting amount in the other currency, using BID or ASK
depending on the originalAmount.currency.
|
CurrencyAmount |
FxRateImpl.convertAmountUsingMid(CurrencyAmount originalAmount) |
CurrencyAmount |
FxRate.convertAmountUsingMid(CurrencyAmount originalAmount)
Given a monetary amount in the original currency, calculate the resulting amount in the other currency, using MID rate.
|
CurrencyAmount |
FxRateImpl.getPaymentAmountForBuying(CurrencyAmount amountToBuy)
Calculates the amount to pay given an amount to buy, e.g.
|
CurrencyAmount |
FxRate.getPaymentAmountForBuying(CurrencyAmount amountToBuy)
Calculates the amount to pay given an amount to buy, e.g.
|
CurrencyAmount |
FxRateImpl.getReceiptAmountForSelling(CurrencyAmount amountToSell)
Calculates the amount the seller would receive given an amount to sell, e.g.
|
CurrencyAmount |
FxRate.getReceiptAmountForSelling(CurrencyAmount amountToSell)
Calculates the amount the seller would receive given an amount to sell, e.g.
|
CurrencyAmount |
CurrencyAmount.negate()
Swap the sign on the amount and return a MonetaryAmount (implementation could make it immutable and return a new entity)
|
CurrencyAmount |
Cash.negate()
Swap the sign on the amount and return a new immutable Money.
|
CurrencyAmount |
CurrencyAmount.subtract(CurrencyAmount money)
Subtract the amount from the existing one and return a MonetaryAmount (implementation could make it immutable and return a new entity)
|
CurrencyAmount |
Cash.subtract(CurrencyAmount money)
Subtract the amount from the existing one and return a new immutable Money.
|
Modifier and Type | Method and Description |
---|---|
CurrencyAmount |
CurrencyAmount.add(CurrencyAmount money)
Add the amount with the existing one and return a MonetaryAmount (implementation could make it immutable and return a new entity)
|
CurrencyAmount |
Cash.add(CurrencyAmount money)
Add the amount with the existing one and return a new immutable Money.
|
CurrencyAmount |
FxRateImpl.convertAmountUsingBidOrAsk(CurrencyAmount originalAmount) |
CurrencyAmount |
FxRate.convertAmountUsingBidOrAsk(CurrencyAmount originalAmount)
Given a monetary amount in the original currency, calculate the resulting amount in the other currency, using BID or ASK
depending on the originalAmount.currency.
|
CurrencyAmount |
FxRateImpl.convertAmountUsingMid(CurrencyAmount originalAmount) |
CurrencyAmount |
FxRate.convertAmountUsingMid(CurrencyAmount originalAmount)
Given a monetary amount in the original currency, calculate the resulting amount in the other currency, using MID rate.
|
CurrencyAmount |
FxRateImpl.getPaymentAmountForBuying(CurrencyAmount amountToBuy)
Calculates the amount to pay given an amount to buy, e.g.
|
CurrencyAmount |
FxRate.getPaymentAmountForBuying(CurrencyAmount amountToBuy)
Calculates the amount to pay given an amount to buy, e.g.
|
CurrencyAmount |
FxRateImpl.getReceiptAmountForSelling(CurrencyAmount amountToSell)
Calculates the amount the seller would receive given an amount to sell, e.g.
|
CurrencyAmount |
FxRate.getReceiptAmountForSelling(CurrencyAmount amountToSell)
Calculates the amount the seller would receive given an amount to sell, e.g.
|
CurrencyAmount |
CurrencyAmount.subtract(CurrencyAmount money)
Subtract the amount from the existing one and return a MonetaryAmount (implementation could make it immutable and return a new entity)
|
CurrencyAmount |
Cash.subtract(CurrencyAmount money)
Subtract the amount from the existing one and return a new immutable Money.
|
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.