Record Class IsdaCdsModel.Contract
java.lang.Object
java.lang.Record
com.quantfinlib.credit.IsdaCdsModel.Contract
- Record Components:
tradeDate- trade date T (the valuation date)stepInDate- T + 1 calendar daycashSettleDate- T + 3 business daysaccrualStartDate- first accrual date (adjusted IMM date)maturityDate- protection end date (unadjusted)coupon- running coupon, decimal per year (0.01 = 100bp)recovery- recovery rate in [0, 1)
- Enclosing class:
IsdaCdsModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccrualStartDaterecord component.Returns the value of thecashSettleDaterecord component.doublecoupon()Returns the value of thecouponrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thematurityDaterecord component.doublerecovery()Returns the value of therecoveryrecord component.Returns the value of thestepInDaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetradeDaterecord component.withCoupon(double newCoupon) The same contract with another coupon.
-
Constructor Details
-
Contract
-
-
Method Details
-
withCoupon
The same contract with another coupon. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
tradeDate
-
stepInDate
Returns the value of thestepInDaterecord component.- Returns:
- the value of the
stepInDaterecord component
-
cashSettleDate
Returns the value of thecashSettleDaterecord component.- Returns:
- the value of the
cashSettleDaterecord component
-
accrualStartDate
Returns the value of theaccrualStartDaterecord component.- Returns:
- the value of the
accrualStartDaterecord component
-
maturityDate
Returns the value of thematurityDaterecord component.- Returns:
- the value of the
maturityDaterecord component
-
coupon
-
recovery
-