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 BusinessDayAdjustment
build()
BusinessDayAdjustment.Builder
calendar(HolidayCalendarId calendar)
Sets the calendar that defines holidays and business days.BusinessDayAdjustment.Builder
convention(BusinessDayConvention convention)
Sets the convention used to the adjust the date if it does not fall on a business day.Object
get(String propertyName)
BusinessDayAdjustment.Builder
set(String propertyName, Object newValue)
BusinessDayAdjustment.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<BusinessDayAdjustment>
- Overrides:
get
in 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:
set
in interfaceorg.joda.beans.BeanBuilder<BusinessDayAdjustment>
- Overrides:
set
in 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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BusinessDayAdjustment>
-
-