Record Class FxVolSurface.SmilePillar
java.lang.Object
java.lang.Record
com.quantfinlib.fx.FxVolSurface.SmilePillar
- Enclosing class:
FxVolSurface
public static record FxVolSurface.SmilePillar(double expiryYears, double forward, double[] strikes, double[] vols)
extends Record
One expiry's solved smile: absolute strikes and vols, low to high strike.
-
Constructor Summary
ConstructorsConstructorDescriptionSmilePillar(double expiryYears, double forward, double[] strikes, double[] vols) Creates an instance of aSmilePillarrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theexpiryYearsrecord component.doubleforward()Returns the value of theforwardrecord component.final inthashCode()Returns a hash code value for this object.double[]strikes()Returns the value of thestrikesrecord component.final StringtoString()Returns a string representation of this record class.double[]vols()Returns the value of thevolsrecord component.
-
Constructor Details
-
SmilePillar
public SmilePillar(double expiryYears, double forward, double[] strikes, double[] vols) Creates an instance of aSmilePillarrecord class.- Parameters:
expiryYears- the value for theexpiryYearsrecord componentforward- the value for theforwardrecord componentstrikes- the value for thestrikesrecord componentvols- the value for thevolsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
expiryYears
public double expiryYears()Returns the value of theexpiryYearsrecord component.- Returns:
- the value of the
expiryYearsrecord component
-
forward
public double forward()Returns the value of theforwardrecord component.- Returns:
- the value of the
forwardrecord component
-
strikes
public double[] strikes()Returns the value of thestrikesrecord component.- Returns:
- the value of the
strikesrecord component
-
vols
public double[] vols()Returns the value of thevolsrecord component.- Returns:
- the value of the
volsrecord component
-