Package com.tnsai.evaluation.autoharness
Record Class RegressionGate.GateResult
java.lang.Object
java.lang.Record
com.tnsai.evaluation.autoharness.RegressionGate.GateResult
- Enclosing class:
RegressionGate
public static record RegressionGate.GateResult(boolean passed, double passRate, int passedCount, int totalCount, BenchmarkResult benchmarkResult, String summary)
extends Record
Result of a regression gate evaluation.
-
Constructor Summary
ConstructorsConstructorDescriptionGateResult(boolean passed, double passRate, int passedCount, int totalCount, BenchmarkResult benchmarkResult, String summary) Creates an instance of aGateResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebenchmarkResultrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanpassed()Returns the value of thepassedrecord component.intReturns the value of thepassedCountrecord component.doublepassRate()Returns the value of thepassRaterecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
Constructor Details
-
GateResult
public GateResult(boolean passed, double passRate, int passedCount, int totalCount, BenchmarkResult benchmarkResult, String summary) Creates an instance of aGateResultrecord class.- Parameters:
passed- the value for thepassedrecord componentpassRate- the value for thepassRaterecord componentpassedCount- the value for thepassedCountrecord componenttotalCount- the value for thetotalCountrecord componentbenchmarkResult- the value for thebenchmarkResultrecord componentsummary- the value for thesummaryrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
passed
public boolean passed()Returns the value of thepassedrecord component.- Returns:
- the value of the
passedrecord component
-
passRate
public double passRate()Returns the value of thepassRaterecord component.- Returns:
- the value of the
passRaterecord component
-
passedCount
public int passedCount()Returns the value of thepassedCountrecord component.- Returns:
- the value of the
passedCountrecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
benchmarkResult
Returns the value of thebenchmarkResultrecord component.- Returns:
- the value of the
benchmarkResultrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-