| Modifier and Type | Method and Description |
|---|---|
CdsIndex |
build() |
CdsIndex.Builder |
buySell(BuySell buySell)
Sets whether the CDS index is buy or sell.
|
CdsIndex.Builder |
cdsIndexId(StandardId cdsIndexId)
Sets the CDS index identifier.
|
CdsIndex.Builder |
currency(Currency currency)
Sets the currency of the CDS index.
|
CdsIndex.Builder |
dayCount(DayCount dayCount)
Sets the day count convention.
|
CdsIndex.Builder |
fixedRate(double fixedRate)
Sets the fixed coupon rate.
|
Object |
get(String propertyName) |
CdsIndex.Builder |
legalEntityIds(List<StandardId> legalEntityIds)
Sets the legal entity identifiers.
|
CdsIndex.Builder |
legalEntityIds(StandardId... legalEntityIds)
Sets the
legalEntityIds property in the builder
from an array of objects. |
CdsIndex.Builder |
notional(double notional)
Sets the notional amount, must be non-negative.
|
CdsIndex.Builder |
paymentOnDefault(PaymentOnDefault paymentOnDefault)
Sets the payment on default.
|
CdsIndex.Builder |
paymentSchedule(PeriodicSchedule paymentSchedule)
Sets the payment schedule.
|
CdsIndex.Builder |
protectionStart(ProtectionStartOfDay protectionStart)
Sets the protection start of the day.
|
CdsIndex.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
CdsIndex.Builder |
set(String propertyName,
Object newValue) |
CdsIndex.Builder |
settlementDateOffset(DaysAdjustment settlementDateOffset)
Sets the number of days between valuation date and settlement date.
|
CdsIndex.Builder |
stepinDateOffset(DaysAdjustment stepinDateOffset)
Sets the number of days between valuation date and step-in date.
|
String |
toString() |
public CdsIndex.Builder set(String propertyName, Object newValue)
public CdsIndex.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public CdsIndex build()
public CdsIndex.Builder buySell(BuySell buySell)
A value of 'Buy' implies buying protection, where the fixed coupon is paid and the protection is received in the event of default. A value of 'Sell' implies selling protection, where the fixed coupon is received and the protection is paid in the event of default.
buySell - the new value, not nullpublic CdsIndex.Builder cdsIndexId(StandardId cdsIndexId)
This identifier is used to refer this CDS index product.
cdsIndexId - the new value, not nullpublic CdsIndex.Builder legalEntityIds(List<StandardId> legalEntityIds)
These identifiers refer to the reference legal entities of the CDS index.
legalEntityIds - the new value, not nullpublic CdsIndex.Builder legalEntityIds(StandardId... legalEntityIds)
legalEntityIds property in the builder
from an array of objects.legalEntityIds - the new value, not nullpublic CdsIndex.Builder currency(Currency currency)
The amounts of the notional are expressed in terms of this currency.
currency - the new value, not nullpublic CdsIndex.Builder notional(double notional)
The fixed notional amount applicable during the lifetime of the CDS.
The currency of the notional is specified by currency.
notional - the new valuepublic CdsIndex.Builder paymentSchedule(PeriodicSchedule paymentSchedule)
This is used to define the payment periods.
paymentSchedule - the new value, not nullpublic CdsIndex.Builder fixedRate(double fixedRate)
This must be represented in decimal form.
fixedRate - the new valuepublic CdsIndex.Builder dayCount(DayCount dayCount)
This is used to convert dates to a numerical value.
When building, this will default to 'Act/360'.
dayCount - the new value, not nullpublic CdsIndex.Builder paymentOnDefault(PaymentOnDefault paymentOnDefault)
Whether the accrued premium is paid in the event of a default.
When building, this will default to 'AccruedPremium'.
paymentOnDefault - the new value, not nullpublic CdsIndex.Builder protectionStart(ProtectionStartOfDay protectionStart)
When the protection starts on the start date.
When building, this will default to 'Beginning'.
protectionStart - the new value, not nullpublic CdsIndex.Builder stepinDateOffset(DaysAdjustment stepinDateOffset)
The step-in date is also called protection effective date. It is usually 1 calendar day for standardized CDS index contracts.
When building, this will default to 1 calendar day.
stepinDateOffset - the new value, not nullpublic CdsIndex.Builder settlementDateOffset(DaysAdjustment settlementDateOffset)
It is usually 3 business days for standardized CDS index contracts.
When building, this will default to 3 business days in the calendar of the payment schedule.
settlementDateOffset - 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.