Record Class OptionPricer.PricingResult
java.lang.Object
java.lang.Record
org.episteme.social.economics.OptionPricer.PricingResult
- Enclosing class:
OptionPricer
public static record OptionPricer.PricingResult(Real price, OptionPricer.OptionGreeks greeks, String model)
extends Record
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionPricingResult(Real price, OptionPricer.OptionGreeks greeks, String model) Creates an instance of aPricingResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.greeks()Returns the value of thegreeksrecord component.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.price()Returns the value of thepricerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PricingResult
Creates an instance of aPricingResultrecord class.- Parameters:
price- the value for thepricerecord componentgreeks- the value for thegreeksrecord componentmodel- the value for themodelrecord 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). -
price
Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
greeks
Returns the value of thegreeksrecord component.- Returns:
- the value of the
greeksrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-