Package com.qtsurfer.api.sdk
Record Class BacktestProgress
java.lang.Object
java.lang.Record
com.qtsurfer.api.sdk.BacktestProgress
- Record Components:
stage- current workflow stagepercent- 0-100 when the job exposes size information;nullfor stage transitions before the first poll.coverageRatio- fraction (0-1) of the requested prepare window that actually holds data, as reported by the backend once preparation completes. Non-nullonly on the finalBacktestStage.PREPARINGevent;nullotherwise.
public record BacktestProgress(BacktestStage stage, Double percent, Double coverageRatio)
extends Record
Emitted at stage transitions and after each poll with known size.
-
Constructor Summary
ConstructorsConstructorDescriptionBacktestProgress(BacktestStage stage, Double percent) Convenience form without coverage;coverageRatiodefaults tonull.BacktestProgress(BacktestStage stage, Double percent, Double coverageRatio) Creates an instance of aBacktestProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoverageRatiorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.percent()Returns the value of thepercentrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BacktestProgress
Convenience form without coverage;coverageRatiodefaults tonull. -
BacktestProgress
Creates an instance of aBacktestProgressrecord class.- Parameters:
stage- the value for thestagerecord componentpercent- the value for thepercentrecord componentcoverageRatio- the value for thecoverageRatiorecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
percent
Returns the value of thepercentrecord component.- Returns:
- the value of the
percentrecord component
-
coverageRatio
Returns the value of thecoverageRatiorecord component.- Returns:
- the value of the
coverageRatiorecord component
-