public final class FixedCouponBondPaymentPeriod extends Object implements BondPaymentPeriod, org.joda.beans.ImmutableBean, Serializable
A single payment period within a fixed coupon bond, ResolvedFixedCouponBond.
The payments of the fixed coupon bond consist periodic coupon payments and nominal payment.
This class represents a single payment of the periodic payments.
| Modifier and Type | Class and Description |
|---|---|
static class |
FixedCouponBondPaymentPeriod.Builder
The bean-builder for
FixedCouponBondPaymentPeriod. |
static class |
FixedCouponBondPaymentPeriod.Meta
The meta-bean for
FixedCouponBondPaymentPeriod. |
| Modifier and Type | Method and Description |
|---|---|
FixedCouponBondPaymentPeriod |
adjustPaymentDate(TemporalAdjuster adjuster)
Adjusts the payment date using the rules of the specified adjuster.
|
static FixedCouponBondPaymentPeriod.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
void |
collectIndices(ImmutableSet.Builder<Index> builder)
Collects all the indices referred to by this period.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the primary currency of the payment period.
|
LocalDate |
getDetachmentDate()
Gets the detachment date.
|
LocalDate |
getEndDate()
Gets the end date of the payment period.
|
double |
getFixedRate()
Gets the fixed coupon rate.
|
double |
getNotional()
Gets the notional amount, must be positive.
|
LocalDate |
getPaymentDate()
Gets the date that the payment is made.
|
LocalDate |
getStartDate()
Gets the start date of the payment 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.
|
boolean |
hasExCouponPeriod()
Checks if there is an ex-coupon period.
|
int |
hashCode() |
static FixedCouponBondPaymentPeriod.Meta |
meta()
The meta-bean for
FixedCouponBondPaymentPeriod. |
FixedCouponBondPaymentPeriod.Meta |
metaBean() |
FixedCouponBondPaymentPeriod.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public void collectIndices(ImmutableSet.Builder<Index> builder)
BondPaymentPeriodA period will typically refer to at least one index, such as 'GBP-LIBOR-3M'. Each index that is referred to must be added to the specified builder.
collectIndices in interface BondPaymentPeriodbuilder - the builder to usepublic FixedCouponBondPaymentPeriod adjustPaymentDate(TemporalAdjuster adjuster)
BondPaymentPeriod
The adjuster is typically an instance of BusinessDayAdjustment.
Implementations must return a new instance unless they are immutable and no change occurs.
adjustPaymentDate in interface BondPaymentPeriodadjuster - the adjuster to apply to the payment datepublic LocalDate getPaymentDate()
BondPaymentPeriodEach payment period has a single payment date. This date has been adjusted to be a valid business day.
getPaymentDate in interface BondPaymentPeriodpublic boolean hasExCouponPeriod()
public static FixedCouponBondPaymentPeriod.Meta meta()
FixedCouponBondPaymentPeriod.public static FixedCouponBondPaymentPeriod.Builder builder()
public FixedCouponBondPaymentPeriod.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic 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.
getCurrency in interface BondPaymentPeriodpublic 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 date in the period. If the schedule adjusts for business days, then this is the adjusted date.
getStartDate in interface BondPaymentPeriodpublic LocalDate getEndDate()
This is the last date in the period. If the schedule adjusts for business days, then this is the adjusted date.
getEndDate in interface BondPaymentPeriodpublic 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 getDetachmentDate()
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.
public double getFixedRate()
The single payment is based on this fixed coupon rate.
public double getYearFraction()
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.
public FixedCouponBondPaymentPeriod.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.