Record Class FrtbDrcSecuritisation.Position<K>
java.lang.Object
java.lang.Record
com.quantfinlib.risk.FrtbDrcSecuritisation.Position<K>
- Enclosing class:
FrtbDrcSecuritisation
public static record FrtbDrcSecuritisation.Position<K>(K bucket, FrtbDrcSecuritisation.NetJtd netJtd)
extends Record
A net tranche JTD tagged with its bucket key (a
FrtbDrcSecuritisation.NonCtpBucket, or an index name for the CTP).-
Constructor Summary
ConstructorsConstructorDescriptionPosition(K bucket, FrtbDrcSecuritisation.NetJtd netJtd) Creates an instance of aPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbucket()Returns the value of thebucketrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.netJtd()Returns the value of thenetJtdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Position
Creates an instance of aPositionrecord class.- Parameters:
bucket- the value for thebucketrecord componentnetJtd- the value for thenetJtdrecord 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 withObjects::equals(Object,Object). -
bucket
Returns the value of thebucketrecord component.- Returns:
- the value of the
bucketrecord component
-
netJtd
Returns the value of thenetJtdrecord component.- Returns:
- the value of the
netJtdrecord component
-