Record Class IsdaCdsModel.Period
java.lang.Object
java.lang.Record
com.quantfinlib.credit.IsdaCdsModel.Period
- Record Components:
accrualStart- accrual start (adjusted)accrualEnd- accrual end (adjusted; maturity + 1 for the last)paymentDate- payment date (adjusted)
- Enclosing class:
IsdaCdsModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccrualEndrecord component.Returns the value of theaccrualStartrecord 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 thepaymentDaterecord component.final StringtoString()Returns a string representation of this record class.doubleACT/360 accrual fraction.
-
Constructor Details
-
Period
Creates an instance of aPeriodrecord class.- Parameters:
accrualStart- the value for theaccrualStartrecord componentaccrualEnd- the value for theaccrualEndrecord componentpaymentDate- the value for thepaymentDaterecord component
-
-
Method Details
-
yearFraction
public double yearFraction()ACT/360 accrual fraction. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
accrualStart
Returns the value of theaccrualStartrecord component.- Returns:
- the value of the
accrualStartrecord component
-
accrualEnd
Returns the value of theaccrualEndrecord component.- Returns:
- the value of the
accrualEndrecord component
-
paymentDate
Returns the value of thepaymentDaterecord component.- Returns:
- the value of the
paymentDaterecord component
-