Record Class OptionsBook.BookGreeks
java.lang.Object
java.lang.Record
com.quantfinlib.hedging.OptionsBook.BookGreeks
- Enclosing class:
OptionsBook
public static record OptionsBook.BookGreeks(double value, double delta, double gamma, double vega, double theta, double rho)
extends Record
Aggregated book value and Greeks.
-
Constructor Summary
ConstructorsConstructorDescriptionBookGreeks(double value, double delta, double gamma, double vega, double theta, double rho) Creates an instance of aBookGreeksrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubledelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.doublegamma()Returns the value of thegammarecord component.final inthashCode()Returns a hash code value for this object.doublerho()Returns the value of therhorecord component.doubletheta()Returns the value of thethetarecord component.final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.doublevega()Returns the value of thevegarecord component.
-
Constructor Details
-
BookGreeks
public BookGreeks(double value, double delta, double gamma, double vega, double theta, double rho) Creates an instance of aBookGreeksrecord class.- Parameters:
value- the value for thevaluerecord componentdelta- the value for thedeltarecord componentgamma- the value for thegammarecord componentvega- the value for thevegarecord componenttheta- the value for thethetarecord componentrho- the value for therhorecord 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. -
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
delta
public double delta()Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
gamma
public double gamma()Returns the value of thegammarecord component.- Returns:
- the value of the
gammarecord component
-
vega
public double vega()Returns the value of thevegarecord component.- Returns:
- the value of the
vegarecord component
-
theta
public double theta()Returns the value of thethetarecord component.- Returns:
- the value of the
thetarecord component
-
rho
public double rho()Returns the value of therhorecord component.- Returns:
- the value of the
rhorecord component
-