Class SchedulePeriod.Builder
- java.lang.Object
 - 
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SchedulePeriod>
 - 
- com.opengamma.strata.basics.schedule.SchedulePeriod.Builder
 
 
 
- 
- All Implemented Interfaces:
 org.joda.beans.BeanBuilder<SchedulePeriod>
- Enclosing class:
 - SchedulePeriod
 
public static final class SchedulePeriod.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SchedulePeriod>
The bean-builder forSchedulePeriod. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchedulePeriodbuild()SchedulePeriod.BuilderendDate(LocalDate endDate)Sets the end date of this period, used for financial calculations such as interest accrual.Objectget(String propertyName)SchedulePeriod.Builderset(String propertyName, Object newValue)SchedulePeriod.Builderset(org.joda.beans.MetaProperty<?> property, Object value)SchedulePeriod.BuilderstartDate(LocalDate startDate)Sets the start date of this period, used for financial calculations such as interest accrual.StringtoString()SchedulePeriod.BuilderunadjustedEndDate(LocalDate unadjustedEndDate)Sets the unadjusted end date.SchedulePeriod.BuilderunadjustedStartDate(LocalDate unadjustedStartDate)Sets the unadjusted start date. 
 - 
 
- 
- 
Method Detail
- 
get
public Object get(String propertyName)
- Specified by:
 getin interfaceorg.joda.beans.BeanBuilder<SchedulePeriod>- Overrides:
 getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SchedulePeriod>
 
- 
set
public SchedulePeriod.Builder set(String propertyName, Object newValue)
 
- 
set
public SchedulePeriod.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
 setin interfaceorg.joda.beans.BeanBuilder<SchedulePeriod>- Overrides:
 setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SchedulePeriod>
 
- 
build
public SchedulePeriod build()
 
- 
startDate
public SchedulePeriod.Builder startDate(LocalDate startDate)
Sets the start date of this period, used for financial calculations such as interest accrual.The first date in the schedule period, typically treated as inclusive. If the schedule adjusts for business days, then this is the adjusted date.
- Parameters:
 startDate- the new value, not null- Returns:
 - this, for chaining, not null
 
 
- 
endDate
public SchedulePeriod.Builder endDate(LocalDate endDate)
Sets the end date of this period, used for financial calculations such as interest accrual.The last date in the schedule period, typically treated as exclusive. If the schedule adjusts for business days, then this is the adjusted date.
- Parameters:
 endDate- the new value, not null- Returns:
 - this, for chaining, not null
 
 
- 
unadjustedStartDate
public SchedulePeriod.Builder unadjustedStartDate(LocalDate unadjustedStartDate)
Sets the unadjusted start date.The start date before any business day adjustment. If the schedule adjusts for business days, then this is typically the regular periodic date. If the schedule does not adjust for business days, then this is the same as the start date.
When building, this will default to the start date if not specified.
- Parameters:
 unadjustedStartDate- the new value, not null- Returns:
 - this, for chaining, not null
 
 
- 
unadjustedEndDate
public SchedulePeriod.Builder unadjustedEndDate(LocalDate unadjustedEndDate)
Sets the unadjusted end date.The end date before any business day adjustment. If the schedule adjusts for business days, then this is typically the regular periodic date. If the schedule does not adjust for business days, then this is the same as the end date.
When building, this will default to the end date if not specified.
- Parameters:
 unadjustedEndDate- the new value, not null- Returns:
 - this, for chaining, not null
 
 
- 
toString
public String toString()
- Overrides:
 toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SchedulePeriod>
 
 - 
 
 -