public static final class DaysAdjustment.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DaysAdjustment>
DaysAdjustment.| Modifier and Type | Method and Description |
|---|---|
DaysAdjustment.Builder |
adjustment(BusinessDayAdjustment adjustment)
Sets the business day adjustment that is performed to the result of the addition.
|
DaysAdjustment |
build() |
DaysAdjustment.Builder |
calendar(HolidayCalendarId calendar)
Sets the holiday calendar that defines the meaning of a day when performing the addition.
|
DaysAdjustment.Builder |
days(int days)
Sets the number of days to be added.
|
Object |
get(String propertyName) |
DaysAdjustment.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
DaysAdjustment.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<DaysAdjustment>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DaysAdjustment>public DaysAdjustment.Builder set(String propertyName, Object newValue)
public DaysAdjustment.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<DaysAdjustment>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DaysAdjustment>public DaysAdjustment build()
public DaysAdjustment.Builder days(int days)
When the adjustment is performed, this amount will be added to the input date using the calendar to determine the addition type.
days - the new value, not nullpublic DaysAdjustment.Builder calendar(HolidayCalendarId calendar)
When the adjustment is performed, this calendar is used to determine which days are business days.
If the holiday calendar is 'None' then addition uses simple date addition arithmetic without considering any days as holidays or weekends. If the holiday calendar is anything other than 'None' then addition uses that calendar, effectively repeatedly finding the next business day.
See the class-level documentation for more information.
calendar - the new value, not nullpublic DaysAdjustment.Builder adjustment(BusinessDayAdjustment adjustment)
This adjustment is applied to the result of the period addition calculation. If the addition is performed using business days then any adjustment here is expected to have a different holiday calendar to that used during addition.
If no adjustment is required, use the 'None' business day adjustment.
See the class-level documentation for more information.
adjustment - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DaysAdjustment>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.