Package dev.dokimos.server.dto.v1
Record Class DiffCase.EvaluatorDiff
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.DiffCase.EvaluatorDiff
- Record Components:
name- the evaluator namebaselineMean- baseline mean score on this item, or null when absent therecandidateMean- candidate mean score on this item, or null when absent theredelta- candidateMean minus baselineMean, or 0.0 when either side is missingstatus- IMPROVED, REGRESSED, or UNCHANGED for this evaluator on this itemsignificant- whether this evaluator's change is statistically significant
- Enclosing class:
DiffCase
public static record DiffCase.EvaluatorDiff(String name, Double baselineMean, Double candidateMean, double delta, String status, boolean significant)
extends Record
A single evaluator's change on one item between baseline and candidate.
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluatorDiff(String name, Double baselineMean, Double candidateMean, double delta, String status, boolean significant) Creates an instance of aEvaluatorDiffrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaselineMeanrecord component.Returns the value of thecandidateMeanrecord component.doubledelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanReturns the value of thesignificantrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluatorDiff
public EvaluatorDiff(String name, Double baselineMean, Double candidateMean, double delta, String status, boolean significant) Creates an instance of aEvaluatorDiffrecord class.- Parameters:
name- the value for thenamerecord componentbaselineMean- the value for thebaselineMeanrecord componentcandidateMean- the value for thecandidateMeanrecord componentdelta- the value for thedeltarecord componentstatus- the value for thestatusrecord componentsignificant- the value for thesignificantrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
baselineMean
Returns the value of thebaselineMeanrecord component.- Returns:
- the value of the
baselineMeanrecord component
-
candidateMean
Returns the value of thecandidateMeanrecord component.- Returns:
- the value of the
candidateMeanrecord component
-
delta
public double delta()Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
significant
public boolean significant()Returns the value of thesignificantrecord component.- Returns:
- the value of the
significantrecord component
-