public final class NotionalExchange extends Object implements SwapPaymentEvent, org.joda.beans.ImmutableBean, Serializable
In most swaps, the notional amount is not exchanged, with only the net difference being exchanged. However, in certain cases, initial, final or intermediate amounts are exchanged. In this case, the notional can be referred to as the principal.
This class represents a notional exchange where the amount is known in advance.
| Modifier and Type | Class and Description |
|---|---|
static class |
NotionalExchange.Meta
The meta-bean for
NotionalExchange. |
| Modifier and Type | Method and Description |
|---|---|
NotionalExchange |
adjustPaymentDate(TemporalAdjuster adjuster)
Adjusts the payment date using the rules of the specified adjuster.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the event.
|
Payment |
getPayment()
Gets the notional exchange payment.
|
CurrencyAmount |
getPaymentAmount()
Gets the payment amount.
|
LocalDate |
getPaymentDate()
Gets the date that the payment is made.
|
int |
hashCode() |
boolean |
isKnownAmountAt(LocalDate date)
Checks whether the payment amount of an event is known at a given date.
|
static NotionalExchange.Meta |
meta()
The meta-bean for
NotionalExchange. |
NotionalExchange.Meta |
metaBean() |
static NotionalExchange |
of(CurrencyAmount paymentAmount,
LocalDate paymentDate)
Obtains an instance from the amount and date.
|
static NotionalExchange |
of(Payment payment)
Obtains an instance from the payment.
|
String |
toString() |
public static NotionalExchange of(CurrencyAmount paymentAmount, LocalDate paymentDate)
paymentAmount - the amount of the notional exchangepaymentDate - the date that the payment is madepublic static NotionalExchange of(Payment payment)
payment - the payment to be madepublic LocalDate getPaymentDate()
SwapPaymentEventEach payment event has a single payment date. This date has been adjusted to be a valid business day.
getPaymentDate in interface SwapPaymentEventpublic CurrencyAmount getPaymentAmount()
public Currency getCurrency()
The currency of the event is the currency of the payment.
getCurrency in interface SwapPaymentEventpublic NotionalExchange adjustPaymentDate(TemporalAdjuster adjuster)
SwapPaymentEvent
The adjuster is typically an instance of BusinessDayAdjustment.
Implementations must return a new instance unless they are immutable and no change occurs.
adjustPaymentDate in interface SwapPaymentEventadjuster - the adjuster to apply to the payment datepublic boolean isKnownAmountAt(LocalDate date)
SwapPaymentEventEach payment event may be a known amount at a given date, else it could be fixed at a later date
isKnownAmountAt in interface SwapPaymentEventdate - the date to check whether payment amount is known or notpublic static NotionalExchange.Meta meta()
NotionalExchange.public NotionalExchange.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic Payment getPayment()
This contains the amount to be paid and the date that payment occurs. This date has been adjusted to be a valid business day.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.