Class OvernightAveragedDailyRateComputation.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedDailyRateComputation>
-
- com.opengamma.strata.product.rate.OvernightAveragedDailyRateComputation.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<OvernightAveragedDailyRateComputation>
- Enclosing class:
- OvernightAveragedDailyRateComputation
public static final class OvernightAveragedDailyRateComputation.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedDailyRateComputation>
The bean-builder forOvernightAveragedDailyRateComputation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OvernightAveragedDailyRateComputationbuild()OvernightAveragedDailyRateComputation.BuilderendDate(LocalDate endDate)Sets the end date of the accrual period.OvernightAveragedDailyRateComputation.BuilderfixingCalendar(HolidayCalendar fixingCalendar)Sets the resolved calendar that the index uses.Objectget(String propertyName)OvernightAveragedDailyRateComputation.Builderindex(OvernightIndex index)Sets the Overnight index.OvernightAveragedDailyRateComputation.Builderset(String propertyName, Object newValue)OvernightAveragedDailyRateComputation.Builderset(org.joda.beans.MetaProperty<?> property, Object value)OvernightAveragedDailyRateComputation.BuilderstartDate(LocalDate startDate)Sets the start date of the accrual period.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<OvernightAveragedDailyRateComputation>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedDailyRateComputation>
-
set
public OvernightAveragedDailyRateComputation.Builder set(String propertyName, Object newValue)
-
set
public OvernightAveragedDailyRateComputation.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<OvernightAveragedDailyRateComputation>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedDailyRateComputation>
-
build
public OvernightAveragedDailyRateComputation build()
-
index
public OvernightAveragedDailyRateComputation.Builder index(OvernightIndex index)
Sets the Overnight index.The rate to be paid is based on this index. It will be a well known market index such as 'GBP-SONIA'.
- Parameters:
index- the new value, not null- Returns:
- this, for chaining, not null
-
fixingCalendar
public OvernightAveragedDailyRateComputation.Builder fixingCalendar(HolidayCalendar fixingCalendar)
Sets the resolved calendar that the index uses.- Parameters:
fixingCalendar- the new value, not null- Returns:
- this, for chaining, not null
-
startDate
public OvernightAveragedDailyRateComputation.Builder startDate(LocalDate startDate)
Sets the start date of the accrual period.This is not necessarily a valid business day. In this case, the first fixing date is the previous business day of the start date on
fixingCalendar.- Parameters:
startDate- the new value, not null- Returns:
- this, for chaining, not null
-
endDate
public OvernightAveragedDailyRateComputation.Builder endDate(LocalDate endDate)
Sets the end date of the accrual period.This is not necessarily a valid business day. In this case, the last fixing date is the previous business day of the end date on
fixingCalendar.- Parameters:
endDate- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedDailyRateComputation>
-
-