Package dev.dokimos.server.dto.v1
Record Class DiffSummary
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.DiffSummary
- Record Components:
pairing- how items were paired:dataset_item_idorpositionalbaselineRunId- the baseline run being comparedcandidateRunId- the candidate run being comparedbaselinePassRate- baseline overall pass ratecandidatePassRate- candidate overall pass ratepassRateDelta- candidate minus baseline pass ratesignificant- whether the pass-rate change is statistically significantimprovedCount- count of items significantly improvedregressedCount- count of items significantly regressedunchangedCount- count of items with no significant changeaddedCount- count of items present only in the candidateremovedCount- 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 Summary
ConstructorsConstructorDescriptionDiffSummary(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 aDiffSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaddedCountrecord component.Returns the value of thebaselinePassRaterecord component.Returns the value of thebaselineRunIdrecord component.Returns the value of thecandidatePassRaterecord component.Returns the value of thecandidateRunIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theimprovedCountrecord component.pairing()Returns the value of thepairingrecord component.Returns the value of thepassRateDeltarecord component.intReturns the value of theregressedCountrecord component.intReturns the value of theremovedCountrecord component.booleanReturns the value of thesignificantrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunchangedCountrecord component.
-
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 aDiffSummaryrecord class.- Parameters:
pairing- the value for thepairingrecord componentbaselineRunId- the value for thebaselineRunIdrecord componentcandidateRunId- the value for thecandidateRunIdrecord componentbaselinePassRate- the value for thebaselinePassRaterecord componentcandidatePassRate- the value for thecandidatePassRaterecord componentpassRateDelta- the value for thepassRateDeltarecord componentsignificant- the value for thesignificantrecord componentimprovedCount- the value for theimprovedCountrecord componentregressedCount- the value for theregressedCountrecord componentunchangedCount- the value for theunchangedCountrecord componentaddedCount- the value for theaddedCountrecord componentremovedCount- the value for theremovedCountrecord 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 '=='. -
pairing
Returns the value of thepairingrecord component.- Returns:
- the value of the
pairingrecord component
-
baselineRunId
Returns the value of thebaselineRunIdrecord component.- Returns:
- the value of the
baselineRunIdrecord component
-
candidateRunId
Returns the value of thecandidateRunIdrecord component.- Returns:
- the value of the
candidateRunIdrecord component
-
baselinePassRate
Returns the value of thebaselinePassRaterecord component.- Returns:
- the value of the
baselinePassRaterecord component
-
candidatePassRate
Returns the value of thecandidatePassRaterecord component.- Returns:
- the value of the
candidatePassRaterecord component
-
passRateDelta
Returns the value of thepassRateDeltarecord component.- Returns:
- the value of the
passRateDeltarecord component
-
significant
public boolean significant()Returns the value of thesignificantrecord component.- Returns:
- the value of the
significantrecord component
-
improvedCount
public int improvedCount()Returns the value of theimprovedCountrecord component.- Returns:
- the value of the
improvedCountrecord component
-
regressedCount
public int regressedCount()Returns the value of theregressedCountrecord component.- Returns:
- the value of the
regressedCountrecord component
-
unchangedCount
public int unchangedCount()Returns the value of theunchangedCountrecord component.- Returns:
- the value of the
unchangedCountrecord component
-
addedCount
public int addedCount()Returns the value of theaddedCountrecord component.- Returns:
- the value of the
addedCountrecord component
-
removedCount
public int removedCount()Returns the value of theremovedCountrecord component.- Returns:
- the value of the
removedCountrecord component
-