public static final class OvernightAveragedRateComputation.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedRateComputation>
OvernightAveragedRateComputation.| Modifier and Type | Method and Description |
|---|---|
OvernightAveragedRateComputation |
build() |
OvernightAveragedRateComputation.Builder |
endDate(LocalDate endDate)
Sets the fixing date associated with the end date of the accrual period.
|
OvernightAveragedRateComputation.Builder |
fixingCalendar(HolidayCalendar fixingCalendar)
Sets the resolved calendar that the index uses.
|
Object |
get(String propertyName) |
OvernightAveragedRateComputation.Builder |
index(OvernightIndex index)
Sets the Overnight index.
|
OvernightAveragedRateComputation.Builder |
rateCutOffDays(int rateCutOffDays)
Sets the number of business days before the end of the period that the rate is cut off.
|
OvernightAveragedRateComputation.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
OvernightAveragedRateComputation.Builder |
set(String propertyName,
Object newValue) |
OvernightAveragedRateComputation.Builder |
startDate(LocalDate startDate)
Sets the fixing date associated with the start date of the accrual period.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<OvernightAveragedRateComputation>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedRateComputation>public OvernightAveragedRateComputation.Builder set(String propertyName, Object newValue)
public OvernightAveragedRateComputation.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<OvernightAveragedRateComputation>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedRateComputation>public OvernightAveragedRateComputation build()
public OvernightAveragedRateComputation.Builder index(OvernightIndex index)
The 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 OvernightAveragedRateComputation.Builder fixingCalendar(HolidayCalendar fixingCalendar)
fixingCalendar - the new value, not nullpublic OvernightAveragedRateComputation.Builder startDate(LocalDate startDate)
This is also the first fixing date. The overnight rate is observed from this date onwards.
In general, the fixing dates and accrual dates are the same for an overnight index. However, in the case of a Tomorrow/Next index, the fixing period is one business day before the accrual period.
startDate - the new value, not nullpublic OvernightAveragedRateComputation.Builder endDate(LocalDate endDate)
The overnight rate is accrued until the maturity date associated with this date.
In general, the fixing dates and accrual dates are the same for an overnight index. However, in the case of a Tomorrow/Next index, the fixing period is one business day before the accrual period.
endDate - the new value, not nullpublic OvernightAveragedRateComputation.Builder rateCutOffDays(int 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 should typically only be non-zero in the last accrual period.
rateCutOffDays - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedRateComputation>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.