public final class CreditCouponPaymentPeriod extends Object implements org.joda.beans.ImmutableBean, Serializable
A single payment period within a CDS, ResolvedCds
.
The payments of the CDS consist of periodic coupon payments and protection payment on default.
This class represents a single payment of the periodic payments.
Modifier and Type | Class and Description |
---|---|
static class |
CreditCouponPaymentPeriod.Builder
The bean-builder for
CreditCouponPaymentPeriod . |
static class |
CreditCouponPaymentPeriod.Meta
The meta-bean for
CreditCouponPaymentPeriod . |
Modifier and Type | Method and Description |
---|---|
static CreditCouponPaymentPeriod.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the primary currency of the payment period.
|
LocalDate |
getEffectiveEndDate()
Gets the effective protection end date of the period.
|
LocalDate |
getEffectiveStartDate()
Gets the effective protection start date of the period.
|
LocalDate |
getEndDate()
Gets the end date of the accrual period.
|
double |
getFixedRate()
Gets the fixed coupon rate.
|
double |
getNotional()
Gets the notional amount, must be positive.
|
LocalDate |
getPaymentDate()
Gets the payment date.
|
LocalDate |
getStartDate()
Gets the start date of the accrual period.
|
LocalDate |
getUnadjustedEndDate()
Gets the unadjusted end date.
|
LocalDate |
getUnadjustedStartDate()
Gets the unadjusted start date.
|
double |
getYearFraction()
Gets the year fraction that the accrual period represents.
|
int |
hashCode() |
static CreditCouponPaymentPeriod.Meta |
meta()
The meta-bean for
CreditCouponPaymentPeriod . |
CreditCouponPaymentPeriod.Meta |
metaBean() |
CreditCouponPaymentPeriod.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static CreditCouponPaymentPeriod.Meta meta()
CreditCouponPaymentPeriod
.public static CreditCouponPaymentPeriod.Builder builder()
public CreditCouponPaymentPeriod.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public Currency getCurrency()
The amounts of the notional are usually expressed in terms of this currency, however they can be converted from amounts in a different currency.
public double getNotional()
The notional amount applicable during the period.
The currency of the notional is specified by currency
.
public LocalDate getStartDate()
This is the first accrual date in the period. If the schedule adjusts for business days, then this is the adjusted date.
public LocalDate getEndDate()
This is the last accrual date in the period. If the schedule adjusts for business days, then this is the adjusted date.
public LocalDate getUnadjustedStartDate()
The start date before any business day adjustment is applied.
When building, this will default to the start date if not specified.
public LocalDate getUnadjustedEndDate()
The end date before any business day adjustment is applied.
When building, this will default to the end date if not specified.
public LocalDate getEffectiveStartDate()
This is the first date in the protection period associated with the payment period.
public LocalDate getEffectiveEndDate()
This is the last date in the protection period associated with the payment period.
public LocalDate getPaymentDate()
The fixed rate is paid on this date.
This is not necessarily the same as endDate
.
public double getFixedRate()
The single payment is based on this fixed coupon rate. The coupon must be represented in fraction.
public double getYearFraction()
The year fraction of a period is based on startDate
and endDate
.
The value is usually calculated using a specific DayCount
.
public CreditCouponPaymentPeriod.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.