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 OvernightAveragedDailyRateComputation
build()
OvernightAveragedDailyRateComputation.Builder
endDate(LocalDate endDate)
Sets the end date of the accrual period.OvernightAveragedDailyRateComputation.Builder
fixingCalendar(HolidayCalendar fixingCalendar)
Sets the resolved calendar that the index uses.Object
get(String propertyName)
OvernightAveragedDailyRateComputation.Builder
index(OvernightIndex index)
Sets the Overnight index.OvernightAveragedDailyRateComputation.Builder
set(String propertyName, Object newValue)
OvernightAveragedDailyRateComputation.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
OvernightAveragedDailyRateComputation.Builder
startDate(LocalDate startDate)
Sets the start date of the accrual period.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<OvernightAveragedDailyRateComputation>
- Overrides:
get
in 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:
set
in interfaceorg.joda.beans.BeanBuilder<OvernightAveragedDailyRateComputation>
- Overrides:
set
in 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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightAveragedDailyRateComputation>
-
-