Record Class FrtbSa.BucketResult
java.lang.Object
java.lang.Record
com.quantfinlib.risk.FrtbSa.BucketResult
- Enclosing class:
FrtbSa
Bucket-level result.
-
Constructor Summary
ConstructorsConstructorDescriptionBucketResult(double k, double s) Creates an instance of aBucketResultrecord 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.doublek()Returns the value of thekrecord component.doubles()Returns the value of thesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BucketResult
public BucketResult(double k, double s) Creates an instance of aBucketResultrecord class.- Parameters:
k- the value for thekrecord components- the value for thesrecord 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. -
k
public double k()Returns the value of thekrecord component.- Returns:
- the value of the
krecord component
-
s
public double s()Returns the value of thesrecord component.- Returns:
- the value of the
srecord component
-