public static final class PeriodAdjustment.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PeriodAdjustment>
PeriodAdjustment.| Modifier and Type | Method and Description |
|---|---|
PeriodAdjustment.Builder |
additionConvention(PeriodAdditionConvention additionConvention)
Sets the addition convention to apply.
|
PeriodAdjustment.Builder |
adjustment(BusinessDayAdjustment adjustment)
Sets the business day adjustment that is performed to the result of the addition.
|
PeriodAdjustment |
build() |
Object |
get(String propertyName) |
PeriodAdjustment.Builder |
period(Period period)
Sets the period to be added.
|
PeriodAdjustment.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
PeriodAdjustment.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<PeriodAdjustment>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PeriodAdjustment>public PeriodAdjustment.Builder set(String propertyName, Object newValue)
public PeriodAdjustment.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<PeriodAdjustment>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PeriodAdjustment>public PeriodAdjustment build()
public PeriodAdjustment.Builder period(Period period)
When the adjustment is performed, this period will be added to the input date.
period - the new value, not nullpublic PeriodAdjustment.Builder additionConvention(PeriodAdditionConvention additionConvention)
When the adjustment is performed, this convention is used to refine the adjusted date. The most common convention is to move the end date to the last business day of the month if the start date is the last business day of the month.
additionConvention - the new value, not nullpublic PeriodAdjustment.Builder adjustment(BusinessDayAdjustment adjustment)
This adjustment is applied to the result of the addition calculation.
If no adjustment is required, use the 'None' business day adjustment.
adjustment - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PeriodAdjustment>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.