Class Schedule.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Schedule>
-
- com.opengamma.strata.basics.schedule.Schedule.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schedulebuild()Schedule.Builderfrequency(Frequency frequency)Sets the periodic frequency used when building the schedule.Objectget(String propertyName)Schedule.Builderperiods(SchedulePeriod... periods)Sets theperiodsproperty in the builder from an array of objects.Schedule.Builderperiods(List<SchedulePeriod> periods)Sets the schedule periods.Schedule.BuilderrollConvention(RollConvention rollConvention)Sets the roll convention used when building the schedule.Schedule.Builderset(String propertyName, Object newValue)Schedule.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
set
public Schedule.Builder set(String propertyName, Object newValue)
-
set
public Schedule.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public Schedule build()
-
periods
public Schedule.Builder periods(List<SchedulePeriod> periods)
Sets the schedule periods.There will be at least one period. The periods are ordered from earliest to latest. It is intended that each period is adjacent to the next one, however each period is independent and non-adjacent periods are allowed.
- Parameters:
periods- the new value, not empty- Returns:
- this, for chaining, not null
-
periods
public Schedule.Builder periods(SchedulePeriod... periods)
Sets theperiodsproperty in the builder from an array of objects.- Parameters:
periods- the new value, not empty- Returns:
- this, for chaining, not null
-
frequency
public Schedule.Builder frequency(Frequency frequency)
Sets the periodic frequency used when building the schedule.If the schedule was not built from a regular periodic frequency, then the frequency should be a suitable estimate.
- Parameters:
frequency- the new value, not null- Returns:
- this, for chaining, not null
-
rollConvention
public Schedule.Builder rollConvention(RollConvention rollConvention)
Sets the roll convention used when building the schedule.If the schedule was not built from a regular periodic frequency, then the convention should be 'None'.
- Parameters:
rollConvention- the new value, not null- Returns:
- this, for chaining, not null
-
-