Record Class SkewedQuoter.Quote
java.lang.Object
java.lang.Record
com.quantfinlib.crb.SkewedQuoter.Quote
- Enclosing class:
SkewedQuoter
A shaded two-way price.
-
Constructor Summary
ConstructorsConstructorDescriptionQuote(double bid, double ask, double skewBps) Creates an instance of aQuoterecord class. -
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.doubleskewBps()Returns the value of theskewBpsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Quote
public Quote(double bid, double ask, double skewBps) Creates an instance of aQuoterecord class.- Parameters:
bid- the value for thebidrecord componentask- the value for theaskrecord componentskewBps- the value for theskewBpsrecord 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. -
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
-
skewBps
public double skewBps()Returns the value of theskewBpsrecord component.- Returns:
- the value of the
skewBpsrecord component
-