public static final class KnownAmountSwapLeg.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountSwapLeg>
KnownAmountSwapLeg.| Modifier and Type | Method and Description |
|---|---|
KnownAmountSwapLeg.Builder |
accrualSchedule(PeriodicSchedule accrualSchedule)
Sets the accrual period schedule.
|
KnownAmountSwapLeg.Builder |
amount(ValueSchedule amount)
Sets the known amount schedule.
|
KnownAmountSwapLeg |
build() |
KnownAmountSwapLeg.Builder |
currency(Currency currency)
Sets the currency of the swap leg.
|
Object |
get(String propertyName) |
KnownAmountSwapLeg.Builder |
paymentSchedule(PaymentSchedule paymentSchedule)
Sets the payment period schedule.
|
KnownAmountSwapLeg.Builder |
payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.
|
KnownAmountSwapLeg.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
KnownAmountSwapLeg.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<KnownAmountSwapLeg>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountSwapLeg>public KnownAmountSwapLeg.Builder set(String propertyName, Object newValue)
public KnownAmountSwapLeg.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<KnownAmountSwapLeg>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountSwapLeg>public KnownAmountSwapLeg build()
public KnownAmountSwapLeg.Builder payReceive(PayReceive payReceive)
A value of 'Pay' implies that the resulting amount is paid to the counterparty. A value of 'Receive' implies that the resulting amount is received from the counterparty. Note that negative interest rates can result in a payment in the opposite direction to that implied by this indicator.
payReceive - the new value, not nullpublic KnownAmountSwapLeg.Builder accrualSchedule(PeriodicSchedule accrualSchedule)
This is used to define the accrual periods. These are used directly or indirectly to determine other dates in the swap.
accrualSchedule - the new value, not nullpublic KnownAmountSwapLeg.Builder paymentSchedule(PaymentSchedule paymentSchedule)
This is used to define the payment periods, including any compounding. The payment period dates are based on the accrual schedule.
paymentSchedule - the new value, not nullpublic KnownAmountSwapLeg.Builder amount(ValueSchedule amount)
This defines the schedule of known amounts, relative to the payment schedule. The schedule is defined as an initial amount, with optional changes during the tenor of the swap. The amount is only permitted to change at payment period boundaries.
Note that the date of the payment is implied by the payment schedule. Any dates in the known amount schedule refer to the payment schedule, not the payment date.
For example, consider a two year swap where each payment period is 3 months long.
This schedule could define two entries, one that defines the payment amounts as GBP 1000 for
the first year and one that defines the amount as GBP 500 for the second year.
In this case there will be eight payments in total, four payments of GBP 1000 in the first
year and four payments of GBP 500 in the second year.
Each payment will occur on the date specified using the offset in PaymentSchedule.
amount - the new value, not nullpublic KnownAmountSwapLeg.Builder currency(Currency currency)
This is the currency of the known payments.
currency - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountSwapLeg>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.