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

    Constructors
    Constructor
    Description
    GateResult(boolean passed, double passRate, int passedCount, int totalCount, BenchmarkResult benchmarkResult, String summary)
    Creates an instance of a GateResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the benchmarkResult record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the passed record component.
    int
    Returns the value of the passedCount record component.
    double
    Returns the value of the passRate record component.
    Returns the value of the summary record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the totalCount record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GateResult

      public GateResult(boolean passed, double passRate, int passedCount, int totalCount, BenchmarkResult benchmarkResult, String summary)
      Creates an instance of a GateResult record class.
      Parameters:
      passed - the value for the passed record component
      passRate - the value for the passRate record component
      passedCount - the value for the passedCount record component
      totalCount - the value for the totalCount record component
      benchmarkResult - the value for the benchmarkResult record component
      summary - the value for the summary record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • passed

      public boolean passed()
      Returns the value of the passed record component.
      Returns:
      the value of the passed record component
    • passRate

      public double passRate()
      Returns the value of the passRate record component.
      Returns:
      the value of the passRate record component
    • passedCount

      public int passedCount()
      Returns the value of the passedCount record component.
      Returns:
      the value of the passedCount record component
    • totalCount

      public int totalCount()
      Returns the value of the totalCount record component.
      Returns:
      the value of the totalCount record component
    • benchmarkResult

      public BenchmarkResult benchmarkResult()
      Returns the value of the benchmarkResult record component.
      Returns:
      the value of the benchmarkResult record component
    • summary

      public String summary()
      Returns the value of the summary record component.
      Returns:
      the value of the summary record component