Record Class TriangularArbitrage.Quote
java.lang.Object
java.lang.Record
com.quantfinlib.pricing.TriangularArbitrage.Quote
- Enclosing class:
TriangularArbitrage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleask()Returns the value of theaskrecord component.doublebid()Returns the value of thebidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublemid()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Quote
public Quote(double bid, double ask) Creates an instance of aQuoterecord class.- Parameters:
bid- the value for thebidrecord componentask- the value for theaskrecord component
-
-
Method Details
-
mid
public double mid() -
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. -
bid
public double bid()Returns the value of thebidrecord component.- Returns:
- the value of the
bidrecord component
-
ask
public double ask()Returns the value of theaskrecord component.- Returns:
- the value of the
askrecord component
-