| Modifier and Type | Method and Description |
|---|---|
CmsPeriod |
build() |
CmsPeriod.Builder |
caplet(Double caplet)
Sets the optional caplet strike.
|
CmsPeriod.Builder |
currency(Currency currency)
Sets the primary currency of the payment period.
|
CmsPeriod.Builder |
dayCount(DayCount dayCount)
Sets the day count of the period.
|
CmsPeriod.Builder |
endDate(LocalDate endDate)
Sets the end date of the payment period.
|
CmsPeriod.Builder |
fixingDate(LocalDate fixingDate)
Sets the date of the index fixing.
|
CmsPeriod.Builder |
floorlet(Double floorlet)
Sets the optional floorlet strike.
|
Object |
get(String propertyName) |
CmsPeriod.Builder |
index(SwapIndex index)
Sets the swap index.
|
CmsPeriod.Builder |
notional(double notional)
Sets the notional amount, positive if receiving, negative if paying.
|
CmsPeriod.Builder |
paymentDate(LocalDate paymentDate)
Sets the date that payment occurs.
|
CmsPeriod.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
CmsPeriod.Builder |
set(String propertyName,
Object newValue) |
CmsPeriod.Builder |
startDate(LocalDate startDate)
Sets the start date of the payment period.
|
String |
toString() |
CmsPeriod.Builder |
unadjustedEndDate(LocalDate unadjustedEndDate)
Sets the unadjusted end date.
|
CmsPeriod.Builder |
unadjustedStartDate(LocalDate unadjustedStartDate)
Sets the unadjusted start date.
|
CmsPeriod.Builder |
underlyingSwap(ResolvedSwap underlyingSwap)
Sets the underlying swap.
|
CmsPeriod.Builder |
yearFraction(double yearFraction)
Sets the year fraction that the accrual period represents.
|
public CmsPeriod.Builder set(String propertyName, Object newValue)
public CmsPeriod.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public CmsPeriod build()
public CmsPeriod.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 CmsPeriod.Builder notional(double notional)
The notional amount applicable during the period.
The currency of the notional is specified by currency.
notional - the new valuepublic CmsPeriod.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 CmsPeriod.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 CmsPeriod.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 CmsPeriod.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 CmsPeriod.Builder yearFraction(double yearFraction)
The value is usually calculated using a DayCount which may be different to that of the index.
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 CmsPeriod.Builder paymentDate(LocalDate paymentDate)
If the schedule adjusts for business days, then this is the adjusted date.
paymentDate - the new value, not nullpublic CmsPeriod.Builder fixingDate(LocalDate fixingDate)
This is an adjusted date with any business day applied.
fixingDate - the new value, not nullpublic CmsPeriod.Builder caplet(Double caplet)
This defines the strike value of a caplet.
If the period is not a caplet, this field will be absent.
caplet - the new valuepublic CmsPeriod.Builder floorlet(Double floorlet)
This defines the strike value of a floorlet.
If the period is not a floorlet, this field will be absent.
floorlet - the new valuepublic CmsPeriod.Builder dayCount(DayCount dayCount)
dayCount - the new value, not nullpublic CmsPeriod.Builder index(SwapIndex index)
The swap rate to be paid is the observed value of this index.
index - the new value, not nullpublic CmsPeriod.Builder underlyingSwap(ResolvedSwap underlyingSwap)
The interest rate swap for which the swap rate is referred.
underlyingSwap - the new value, not nullCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.