public static final class OvernightRateSwapLegConvention.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightRateSwapLegConvention>
OvernightRateSwapLegConvention.| Modifier and Type | Method and Description |
|---|---|
OvernightRateSwapLegConvention.Builder |
accrualBusinessDayAdjustment(BusinessDayAdjustment accrualBusinessDayAdjustment)
Sets the business day adjustment to apply to accrual schedule dates.
|
OvernightRateSwapLegConvention.Builder |
accrualFrequency(Frequency accrualFrequency)
Sets the periodic frequency of accrual.
|
OvernightRateSwapLegConvention.Builder |
accrualMethod(OvernightAccrualMethod accrualMethod)
Sets the method of accruing overnight interest, defaulted to 'Compounded'.
|
OvernightRateSwapLegConvention |
build() |
OvernightRateSwapLegConvention.Builder |
compoundingMethod(CompoundingMethod compoundingMethod)
Sets the compounding method to use when there is more than one accrual period
in each payment period, optional with defaulting getter.
|
OvernightRateSwapLegConvention.Builder |
currency(Currency currency)
Sets the leg currency, optional with defaulting getter.
|
OvernightRateSwapLegConvention.Builder |
dayCount(DayCount dayCount)
Sets the day count convention applicable, optional with defaulting getter.
|
OvernightRateSwapLegConvention.Builder |
endDateBusinessDayAdjustment(BusinessDayAdjustment endDateBusinessDayAdjustment)
Sets the business day adjustment to apply to the end date, optional with defaulting getter.
|
Object |
get(String propertyName) |
OvernightRateSwapLegConvention.Builder |
index(OvernightIndex index)
Sets the Overnight index.
|
OvernightRateSwapLegConvention.Builder |
notionalExchange(boolean notionalExchange)
Sets the flag indicating whether to exchange the notional.
|
OvernightRateSwapLegConvention.Builder |
paymentDateOffset(DaysAdjustment paymentDateOffset)
Sets the offset of payment from the base date, optional with defaulting getter.
|
OvernightRateSwapLegConvention.Builder |
paymentFrequency(Frequency paymentFrequency)
Sets the periodic frequency of payments, optional with defaulting getter.
|
OvernightRateSwapLegConvention.Builder |
rateCutOffDays(Integer rateCutOffDays)
Sets the number of business days before the end of the period that the rate is cut off.
|
OvernightRateSwapLegConvention.Builder |
rollConvention(RollConvention rollConvention)
Sets the convention defining how to roll dates, optional with defaulting getter.
|
OvernightRateSwapLegConvention.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
OvernightRateSwapLegConvention.Builder |
set(String propertyName,
Object newValue) |
OvernightRateSwapLegConvention.Builder |
startDateBusinessDayAdjustment(BusinessDayAdjustment startDateBusinessDayAdjustment)
Sets the business day adjustment to apply to the start date, optional with defaulting getter.
|
OvernightRateSwapLegConvention.Builder |
stubConvention(StubConvention stubConvention)
Sets the convention defining how to handle stubs, optional with defaulting getter.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<OvernightRateSwapLegConvention>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightRateSwapLegConvention>public OvernightRateSwapLegConvention.Builder set(String propertyName, Object newValue)
public OvernightRateSwapLegConvention.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<OvernightRateSwapLegConvention>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightRateSwapLegConvention>public OvernightRateSwapLegConvention build()
public OvernightRateSwapLegConvention.Builder index(OvernightIndex index)
The floating rate to be paid is based on this index It will be a well known market index such as 'GBP-SONIA'.
index - the new value, not nullpublic OvernightRateSwapLegConvention.Builder accrualMethod(OvernightAccrualMethod accrualMethod)
Two methods of accrual are supported - 'Compounded' and 'Averaged'. Averaging is primarily related to the 'USD-FED-FUND' index.
accrualMethod - the new value, not nullpublic OvernightRateSwapLegConvention.Builder rateCutOffDays(Integer rateCutOffDays)
When a rate cut-off applies, the final daily rate is determined this number of days before the end of the period, with any subsequent days having the same rate.
The amount must be zero or positive. A value of zero or one will have no effect on the standard calculation. The fixing holiday calendar of the index is used to determine business days.
For example, a value of 3 means that the rate observed on
(periodEndDate - 3 business days) is also to be used on
(periodEndDate - 2 business days) and (periodEndDate - 1 business day).
If there are multiple accrual periods in the payment period, then this will only apply to the last accrual period in the payment period.
This will default to the zero if not specified.
rateCutOffDays - the new valuepublic OvernightRateSwapLegConvention.Builder currency(Currency currency)
This is the currency of the swap leg and the currency that payment is made in. The data model permits this currency to differ from that of the index, however the two are typically the same.
This will default to the currency of the index if not specified.
currency - the new valuepublic OvernightRateSwapLegConvention.Builder dayCount(DayCount dayCount)
This is used to convert dates to a numerical value. The data model permits the day count to differ from that of the index, however the two are typically the same.
This will default to the day count of the index if not specified.
dayCount - the new valuepublic OvernightRateSwapLegConvention.Builder accrualFrequency(Frequency accrualFrequency)
Interest will be accrued over periods at the specified periodic frequency, such as every 3 months.
This will default to the term frequency if not specified.
accrualFrequency - the new valuepublic OvernightRateSwapLegConvention.Builder accrualBusinessDayAdjustment(BusinessDayAdjustment accrualBusinessDayAdjustment)
Each date in the calculated schedule is determined without taking into account weekends and holidays. The adjustment specified here is used to convert those dates to valid business days.
The start date and end date may have their own business day adjustment rules. If those are not present, then this adjustment is used instead.
This will default to 'ModifiedFollowing' using the index fixing calendar if not specified.
accrualBusinessDayAdjustment - the new valuepublic OvernightRateSwapLegConvention.Builder startDateBusinessDayAdjustment(BusinessDayAdjustment startDateBusinessDayAdjustment)
The start date property is an unadjusted date and as such might be a weekend or holiday. The adjustment specified here is used to convert the start date to a valid business day.
This will default to the accrualDatesBusinessDayAdjustment if not specified.
startDateBusinessDayAdjustment - the new valuepublic OvernightRateSwapLegConvention.Builder endDateBusinessDayAdjustment(BusinessDayAdjustment endDateBusinessDayAdjustment)
The end date property is an unadjusted date and as such might be a weekend or holiday. The adjustment specified here is used to convert the end date to a valid business day.
This will default to the accrualDatesBusinessDayAdjustment if not specified.
endDateBusinessDayAdjustment - the new valuepublic OvernightRateSwapLegConvention.Builder stubConvention(StubConvention stubConvention)
The stub convention is used during schedule construction to determine whether the irregular remaining period occurs at the start or end of the schedule. It also determines whether the irregular period is shorter or longer than the regular period.
This will default to 'SmartInitial' if not specified.
stubConvention - the new valuepublic OvernightRateSwapLegConvention.Builder rollConvention(RollConvention rollConvention)
The schedule periods are determined at the high level by repeatedly adding the frequency to the start date, or subtracting it from the end date. The roll convention provides the detailed rule to adjust the day-of-month or day-of-week.
This will default to 'None' if not specified.
rollConvention - the new valuepublic OvernightRateSwapLegConvention.Builder paymentFrequency(Frequency paymentFrequency)
Regular payments will be made at the specified periodic frequency. The frequency must be the same as, or a multiple of, the accrual periodic frequency.
Compounding applies if the payment frequency does not equal the accrual frequency.
This will default to the accrual frequency if not specified.
paymentFrequency - the new valuepublic OvernightRateSwapLegConvention.Builder paymentDateOffset(DaysAdjustment paymentDateOffset)
The offset is applied to the unadjusted date specified by paymentRelativeTo.
Offset can be based on calendar days or business days.
This will default to 'None' if not specified.
paymentDateOffset - the new valuepublic OvernightRateSwapLegConvention.Builder compoundingMethod(CompoundingMethod compoundingMethod)
Compounding is used when combining accrual periods.
This will default to 'None' if not specified.
compoundingMethod - the new valuepublic OvernightRateSwapLegConvention.Builder notionalExchange(boolean notionalExchange)
If 'true', the notional there is both an initial exchange and a final exchange of notional.
This will default to 'false' if not specified.
notionalExchange - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightRateSwapLegConvention>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.