Record Class OptionPricer.OptionGreeks
java.lang.Object
java.lang.Record
org.episteme.social.economics.OptionPricer.OptionGreeks
- Enclosing class:
OptionPricer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.gamma()Returns the value of thegammarecord component.final inthashCode()Returns a hash code value for this object.rho()Returns the value of therhorecord component.theta()Returns the value of thethetarecord component.final StringtoString()Returns a string representation of this record class.vega()Returns the value of thevegarecord component.
-
Constructor Details
-
OptionGreeks
Creates an instance of aOptionGreeksrecord class.- Parameters:
delta- the value for thedeltarecord componentgamma- the value for thegammarecord componenttheta- the value for thethetarecord componentvega- the value for thevegarecord 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 withObjects::equals(Object,Object). -
delta
Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
gamma
Returns the value of thegammarecord component.- Returns:
- the value of the
gammarecord component
-
theta
Returns the value of thethetarecord component.- Returns:
- the value of the
thetarecord component
-
vega
Returns the value of thevegarecord component.- Returns:
- the value of the
vegarecord component
-
rho
Returns the value of therhorecord component.- Returns:
- the value of the
rhorecord component
-