Record Class DiffSummary

java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.DiffSummary
Record Components:
pairing - how items were paired: dataset_item_id or positional
baselineRunId - the baseline run being compared
candidateRunId - the candidate run being compared
baselinePassRate - baseline overall pass rate
candidatePassRate - candidate overall pass rate
passRateDelta - candidate minus baseline pass rate
significant - whether the pass-rate change is statistically significant
improvedCount - count of items significantly improved
regressedCount - count of items significantly regressed
unchangedCount - count of items with no significant change
addedCount - count of items present only in the candidate
removedCount - count of items present only in the baseline

public record DiffSummary(String pairing, UUID baselineRunId, UUID candidateRunId, Double baselinePassRate, Double candidatePassRate, Double passRateDelta, boolean significant, int improvedCount, int regressedCount, int unchangedCount, int addedCount, int removedCount) extends Record
Whole-run summary of a per-case run diff. Mirrors the headline numbers of the gate verdict but is framed for a view rather than a CI branch: it always compares the two specific runs the user picked. Counts are significance-gated by the core comparison engine.
  • Constructor Details

    • DiffSummary

      public DiffSummary(String pairing, UUID baselineRunId, UUID candidateRunId, Double baselinePassRate, Double candidatePassRate, Double passRateDelta, boolean significant, int improvedCount, int regressedCount, int unchangedCount, int addedCount, int removedCount)
      Creates an instance of a DiffSummary record class.
      Parameters:
      pairing - the value for the pairing record component
      baselineRunId - the value for the baselineRunId record component
      candidateRunId - the value for the candidateRunId record component
      baselinePassRate - the value for the baselinePassRate record component
      candidatePassRate - the value for the candidatePassRate record component
      passRateDelta - the value for the passRateDelta record component
      significant - the value for the significant record component
      improvedCount - the value for the improvedCount record component
      regressedCount - the value for the regressedCount record component
      unchangedCount - the value for the unchangedCount record component
      addedCount - the value for the addedCount record component
      removedCount - the value for the removedCount 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.
    • pairing

      public String pairing()
      Returns the value of the pairing record component.
      Returns:
      the value of the pairing record component
    • baselineRunId

      public UUID baselineRunId()
      Returns the value of the baselineRunId record component.
      Returns:
      the value of the baselineRunId record component
    • candidateRunId

      public UUID candidateRunId()
      Returns the value of the candidateRunId record component.
      Returns:
      the value of the candidateRunId record component
    • baselinePassRate

      public Double baselinePassRate()
      Returns the value of the baselinePassRate record component.
      Returns:
      the value of the baselinePassRate record component
    • candidatePassRate

      public Double candidatePassRate()
      Returns the value of the candidatePassRate record component.
      Returns:
      the value of the candidatePassRate record component
    • passRateDelta

      public Double passRateDelta()
      Returns the value of the passRateDelta record component.
      Returns:
      the value of the passRateDelta record component
    • significant

      public boolean significant()
      Returns the value of the significant record component.
      Returns:
      the value of the significant record component
    • improvedCount

      public int improvedCount()
      Returns the value of the improvedCount record component.
      Returns:
      the value of the improvedCount record component
    • regressedCount

      public int regressedCount()
      Returns the value of the regressedCount record component.
      Returns:
      the value of the regressedCount record component
    • unchangedCount

      public int unchangedCount()
      Returns the value of the unchangedCount record component.
      Returns:
      the value of the unchangedCount record component
    • addedCount

      public int addedCount()
      Returns the value of the addedCount record component.
      Returns:
      the value of the addedCount record component
    • removedCount

      public int removedCount()
      Returns the value of the removedCount record component.
      Returns:
      the value of the removedCount record component