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 Schedule
build()
Schedule.Builder
frequency(Frequency frequency)
Sets the periodic frequency used when building the schedule.Object
get(String propertyName)
Schedule.Builder
periods(SchedulePeriod... periods)
Sets theperiods
property in the builder from an array of objects.Schedule.Builder
periods(List<SchedulePeriod> periods)
Sets the schedule periods.Schedule.Builder
rollConvention(RollConvention rollConvention)
Sets the roll convention used when building the schedule.Schedule.Builder
set(String propertyName, Object newValue)
Schedule.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
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 theperiods
property 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
-
-