public static final class CapitalIndexedBondPaymentPeriod.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CapitalIndexedBondPaymentPeriod>
CapitalIndexedBondPaymentPeriod.public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<CapitalIndexedBondPaymentPeriod>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CapitalIndexedBondPaymentPeriod>public CapitalIndexedBondPaymentPeriod.Builder set(String propertyName, Object newValue)
public CapitalIndexedBondPaymentPeriod.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<CapitalIndexedBondPaymentPeriod>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CapitalIndexedBondPaymentPeriod>public CapitalIndexedBondPaymentPeriod build()
public CapitalIndexedBondPaymentPeriod.Builder currency(Currency currency)
The amounts of the notional are usually expressed in terms of this currency, however they can be converted from amounts in a different currency.
currency - the new value, not nullpublic CapitalIndexedBondPaymentPeriod.Builder notional(double notional)
The notional amount applicable during the period.
The currency of the notional is specified by currency.
notional - the new valuepublic CapitalIndexedBondPaymentPeriod.Builder realCoupon(double realCoupon)
The real coupon is the rate before taking the inflation into account. For example, a real coupon of c for semi-annual payments is c/2.
realCoupon - the new valuepublic CapitalIndexedBondPaymentPeriod.Builder startDate(LocalDate startDate)
This is the first date in the period. If the schedule adjusts for business days, then this is the adjusted date.
startDate - the new value, not nullpublic CapitalIndexedBondPaymentPeriod.Builder endDate(LocalDate endDate)
This is the last date in the period. If the schedule adjusts for business days, then this is the adjusted date.
endDate - the new value, not nullpublic CapitalIndexedBondPaymentPeriod.Builder unadjustedStartDate(LocalDate unadjustedStartDate)
The start date before any business day adjustment is applied.
When building, this will default to the start date if not specified.
unadjustedStartDate - the new value, not nullpublic CapitalIndexedBondPaymentPeriod.Builder unadjustedEndDate(LocalDate unadjustedEndDate)
The end date before any business day adjustment is applied.
When building, this will default to the end date if not specified.
unadjustedEndDate - the new value, not nullpublic CapitalIndexedBondPaymentPeriod.Builder detachmentDate(LocalDate detachmentDate)
Some bonds trade ex-coupon before the coupon payment. The coupon is paid not to the owner of the bond on the payment date but to the owner of the bond on the detachment date.
When building, this will default to the end date if not specified.
detachmentDate - the new value, not nullpublic CapitalIndexedBondPaymentPeriod.Builder rateComputation(RateComputation rateComputation)
The value of the period is based on this rate.
This must be an inflation rate observation, specifically InflationEndInterpolatedRateComputation
or InflationEndMonthRateComputation.
rateComputation - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CapitalIndexedBondPaymentPeriod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.