Package com.opengamma.strata.basics.date
Class BusinessDayAdjustment.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BusinessDayAdjustment>
-
- com.opengamma.strata.basics.date.BusinessDayAdjustment.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<BusinessDayAdjustment>
- Enclosing class:
- BusinessDayAdjustment
public static final class BusinessDayAdjustment.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BusinessDayAdjustment>
The bean-builder forBusinessDayAdjustment.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BusinessDayAdjustmentbuild()BusinessDayAdjustment.Buildercalendar(HolidayCalendarId calendar)Sets the calendar that defines holidays and business days.BusinessDayAdjustment.Builderconvention(BusinessDayConvention convention)Sets the convention used to the adjust the date if it does not fall on a business day.Objectget(String propertyName)BusinessDayAdjustment.Builderset(String propertyName, Object newValue)BusinessDayAdjustment.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<BusinessDayAdjustment>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BusinessDayAdjustment>
-
set
public BusinessDayAdjustment.Builder set(String propertyName, Object newValue)
-
set
public BusinessDayAdjustment.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<BusinessDayAdjustment>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BusinessDayAdjustment>
-
build
public BusinessDayAdjustment build()
-
convention
public BusinessDayAdjustment.Builder convention(BusinessDayConvention convention)
Sets the convention used to the adjust the date if it does not fall on a business day.The convention determines whether to move forwards or backwards when it is a holiday.
- Parameters:
convention- the new value, not null- Returns:
- this, for chaining, not null
-
calendar
public BusinessDayAdjustment.Builder calendar(HolidayCalendarId calendar)
Sets the calendar that defines holidays and business days.When the adjustment is made, this calendar is used to skip holidays.
- Parameters:
calendar- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BusinessDayAdjustment>
-
-