Record Class FrtbDrcSecuritisation.NetJtd
java.lang.Object
java.lang.Record
com.quantfinlib.risk.FrtbDrcSecuritisation.NetJtd
- Enclosing class:
FrtbDrcSecuritisation
A net JTD of one tranche (signed, positive long) and its DRC risk weight per unit of JTD.
-
Constructor Summary
ConstructorsConstructorDescriptionNetJtd(double jtd, double riskWeight) Creates an instance of aNetJtdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublejtd()Returns the value of thejtdrecord component.doubleReturns the value of theriskWeightrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NetJtd
public NetJtd(double jtd, double riskWeight) Creates an instance of aNetJtdrecord class.- Parameters:
jtd- the value for thejtdrecord componentriskWeight- the value for theriskWeightrecord component
-
-
Method Details
-
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 with thecomparemethod from their corresponding wrapper classes. -
jtd
public double jtd()Returns the value of thejtdrecord component.- Returns:
- the value of the
jtdrecord component
-
riskWeight
public double riskWeight()Returns the value of theriskWeightrecord component.- Returns:
- the value of the
riskWeightrecord component
-