| Modifier and Type | Method and Description |
|---|---|
CmsLeg |
build() |
CmsLeg.Builder |
capSchedule(ValueSchedule capSchedule)
Sets the cap schedule, optional.
|
CmsLeg.Builder |
currency(Currency currency)
Sets the currency of the leg associated with the notional.
|
CmsLeg.Builder |
dayCount(DayCount dayCount)
Sets the day count convention.
|
CmsLeg.Builder |
fixingDateOffset(DaysAdjustment fixingDateOffset)
Sets the offset of the fixing date from each adjusted reset date.
|
CmsLeg.Builder |
fixingRelativeTo(FixingRelativeTo fixingRelativeTo)
Sets the base date that each fixing is made relative to, defaulted to 'PeriodStart'.
|
CmsLeg.Builder |
floorSchedule(ValueSchedule floorSchedule)
Sets the floor schedule, optional.
|
Object |
get(String propertyName) |
CmsLeg.Builder |
index(SwapIndex index)
Sets the swap index.
|
CmsLeg.Builder |
notional(ValueSchedule notional)
Sets the notional amount, must be non-negative.
|
CmsLeg.Builder |
paymentDateOffset(DaysAdjustment paymentDateOffset)
Sets the offset of payment from the base calculation period date.
|
CmsLeg.Builder |
paymentSchedule(PeriodicSchedule paymentSchedule)
Sets the periodic payment schedule.
|
CmsLeg.Builder |
payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.
|
CmsLeg.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
CmsLeg.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public CmsLeg.Builder set(String propertyName, Object newValue)
public CmsLeg.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public CmsLeg build()
public CmsLeg.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 swap rates can result in a payment in the opposite direction to that implied by this indicator.
payReceive - the new value, not nullpublic CmsLeg.Builder paymentSchedule(PeriodicSchedule paymentSchedule)
This is used to define the periodic payment periods. These are used directly or indirectly to determine other dates in the leg.
paymentSchedule - the new value, not nullpublic CmsLeg.Builder paymentDateOffset(DaysAdjustment paymentDateOffset)
The offset is applied to the adjusted end date of each payment period. Offset can be based on calendar days or business days.
When building, this will default to the payment offset of the swap convention in the swap index if not specified.
paymentDateOffset - the new value, not nullpublic CmsLeg.Builder currency(Currency currency)
This is the currency of the leg and the currency that swap rate calculation is made in. The amounts of the notional are expressed in terms of this currency.
currency - the new value, not nullpublic CmsLeg.Builder notional(ValueSchedule notional)
The notional amount applicable during the period.
The currency of the notional is specified by currency.
notional - the new value, not nullpublic CmsLeg.Builder index(SwapIndex index)
The swap rate to be paid is the observed value of this index.
index - the new value, not nullpublic CmsLeg.Builder fixingRelativeTo(FixingRelativeTo fixingRelativeTo)
The fixing date is relative to either the start or end of each period.
fixingRelativeTo - the new value, not nullpublic CmsLeg.Builder fixingDateOffset(DaysAdjustment fixingDateOffset)
The offset is applied to the base date specified by fixingRelativeTo.
The offset is typically a negative number of business days.
When building, this will default to the fixing offset of the swap convention in the swap index if not specified.
fixingDateOffset - the new value, not nullpublic CmsLeg.Builder dayCount(DayCount dayCount)
This is used to convert dates to a numerical value.
When building, this will default to the day count of the swap convention in the swap index if not specified.
dayCount - the new value, not nullpublic CmsLeg.Builder capSchedule(ValueSchedule capSchedule)
This defines the strike value of a cap as an initial value and a list of adjustments. Thus individual caplets may have different strike values. The cap rate is only allowed to change at payment period boundaries.
If the product is not a cap, the cap schedule will be absent.
capSchedule - the new valuepublic CmsLeg.Builder floorSchedule(ValueSchedule floorSchedule)
This defines the strike value of a floor as an initial value and a list of adjustments. Thus individual floorlets may have different strike values. The floor rate is only allowed to change at payment period boundaries.
If the product is not a floor, the floor schedule will be absent.
floorSchedule - the new valueCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.