public static final class CreditCouponPaymentPeriod.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CreditCouponPaymentPeriod>
CreditCouponPaymentPeriod.| Modifier and Type | Method and Description |
|---|---|
CreditCouponPaymentPeriod |
build() |
CreditCouponPaymentPeriod.Builder |
currency(Currency currency)
Sets the primary currency of the payment period.
|
CreditCouponPaymentPeriod.Builder |
effectiveEndDate(LocalDate effectiveEndDate)
Sets the effective protection end date of the period.
|
CreditCouponPaymentPeriod.Builder |
effectiveStartDate(LocalDate effectiveStartDate)
Sets the effective protection start date of the period.
|
CreditCouponPaymentPeriod.Builder |
endDate(LocalDate endDate)
Sets the end date of the accrual period.
|
CreditCouponPaymentPeriod.Builder |
fixedRate(double fixedRate)
Sets the fixed coupon rate.
|
Object |
get(String propertyName) |
CreditCouponPaymentPeriod.Builder |
notional(double notional)
Sets the notional amount, must be positive.
|
CreditCouponPaymentPeriod.Builder |
paymentDate(LocalDate paymentDate)
Sets the payment date.
|
CreditCouponPaymentPeriod.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
CreditCouponPaymentPeriod.Builder |
set(String propertyName,
Object newValue) |
CreditCouponPaymentPeriod.Builder |
startDate(LocalDate startDate)
Sets the start date of the accrual period.
|
String |
toString() |
CreditCouponPaymentPeriod.Builder |
unadjustedEndDate(LocalDate unadjustedEndDate)
Sets the unadjusted end date.
|
CreditCouponPaymentPeriod.Builder |
unadjustedStartDate(LocalDate unadjustedStartDate)
Sets the unadjusted start date.
|
CreditCouponPaymentPeriod.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<CreditCouponPaymentPeriod>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CreditCouponPaymentPeriod>public CreditCouponPaymentPeriod.Builder set(String propertyName, Object newValue)
public CreditCouponPaymentPeriod.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<CreditCouponPaymentPeriod>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CreditCouponPaymentPeriod>public CreditCouponPaymentPeriod build()
public CreditCouponPaymentPeriod.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 CreditCouponPaymentPeriod.Builder notional(double notional)
The notional amount applicable during the period.
The currency of the notional is specified by currency.
notional - the new valuepublic CreditCouponPaymentPeriod.Builder startDate(LocalDate startDate)
This is the first accrual date in the period. If the schedule adjusts for business days, then this is the adjusted date.
startDate - the new value, not nullpublic CreditCouponPaymentPeriod.Builder endDate(LocalDate endDate)
This is the last accrual date in the period. If the schedule adjusts for business days, then this is the adjusted date.
endDate - the new value, not nullpublic CreditCouponPaymentPeriod.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 CreditCouponPaymentPeriod.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 CreditCouponPaymentPeriod.Builder effectiveStartDate(LocalDate effectiveStartDate)
This is the first date in the protection period associated with the payment period.
effectiveStartDate - the new value, not nullpublic CreditCouponPaymentPeriod.Builder effectiveEndDate(LocalDate effectiveEndDate)
This is the last date in the protection period associated with the payment period.
effectiveEndDate - the new value, not nullpublic CreditCouponPaymentPeriod.Builder paymentDate(LocalDate paymentDate)
The fixed rate is paid on this date.
This is not necessarily the same as endDate.
paymentDate - the new value, not nullpublic CreditCouponPaymentPeriod.Builder fixedRate(double fixedRate)
The single payment is based on this fixed coupon rate. The coupon must be represented in fraction.
fixedRate - the new valuepublic CreditCouponPaymentPeriod.Builder yearFraction(double yearFraction)
The year fraction of a period is based on startDate and endDate.
The value is usually calculated using a specific DayCount.
yearFraction - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CreditCouponPaymentPeriod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.