public static final class FixedCouponBondPaymentPeriod.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBondPaymentPeriod>
FixedCouponBondPaymentPeriod.| Modifier and Type | Method and Description |
|---|---|
FixedCouponBondPaymentPeriod |
build() |
FixedCouponBondPaymentPeriod.Builder |
currency(Currency currency)
Sets the primary currency of the payment period.
|
FixedCouponBondPaymentPeriod.Builder |
detachmentDate(LocalDate detachmentDate)
Sets the detachment date.
|
FixedCouponBondPaymentPeriod.Builder |
endDate(LocalDate endDate)
Sets the end date of the payment period.
|
FixedCouponBondPaymentPeriod.Builder |
fixedRate(double fixedRate)
Sets the fixed coupon rate.
|
Object |
get(String propertyName) |
FixedCouponBondPaymentPeriod.Builder |
notional(double notional)
Sets the notional amount, must be positive.
|
FixedCouponBondPaymentPeriod.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
FixedCouponBondPaymentPeriod.Builder |
set(String propertyName,
Object newValue) |
FixedCouponBondPaymentPeriod.Builder |
startDate(LocalDate startDate)
Sets the start date of the payment period.
|
String |
toString() |
FixedCouponBondPaymentPeriod.Builder |
unadjustedEndDate(LocalDate unadjustedEndDate)
Sets the unadjusted end date.
|
FixedCouponBondPaymentPeriod.Builder |
unadjustedStartDate(LocalDate unadjustedStartDate)
Sets the unadjusted start date.
|
FixedCouponBondPaymentPeriod.Builder |
yearFraction(double yearFraction)
Sets the year fraction that the accrual period represents.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<FixedCouponBondPaymentPeriod>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBondPaymentPeriod>public FixedCouponBondPaymentPeriod.Builder set(String propertyName, Object newValue)
public FixedCouponBondPaymentPeriod.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<FixedCouponBondPaymentPeriod>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBondPaymentPeriod>public FixedCouponBondPaymentPeriod build()
public FixedCouponBondPaymentPeriod.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 FixedCouponBondPaymentPeriod.Builder notional(double notional)
The notional amount applicable during the period.
The currency of the notional is specified by currency.
notional - the new valuepublic FixedCouponBondPaymentPeriod.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 FixedCouponBondPaymentPeriod.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 FixedCouponBondPaymentPeriod.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 FixedCouponBondPaymentPeriod.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 FixedCouponBondPaymentPeriod.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 FixedCouponBondPaymentPeriod.Builder fixedRate(double fixedRate)
The single payment is based on this fixed coupon rate.
fixedRate - the new valuepublic FixedCouponBondPaymentPeriod.Builder yearFraction(double yearFraction)
The year fraction of a bond period is based on the unadjusted dates.
The value is usually calculated using a DayCount.
Typically the value will be close to 1 for one year and close to 0.5 for six months.
The fraction may be greater than 1, but not less than 0.
yearFraction - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBondPaymentPeriod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.