Package dev.dokimos.server.service
Record Class ComparisonSupport.ComparisonOutcome
java.lang.Object
java.lang.Record
dev.dokimos.server.service.ComparisonSupport.ComparisonOutcome
- Record Components:
result- the core comparison resultpairing- how items were paired:dataset_item_idorpositionalbaselineItems- the baseline run's loaded items, in pairing ordercandidateItems- the candidate run's loaded items, in pairing order
- Enclosing class:
ComparisonSupport
public static record ComparisonSupport.ComparisonOutcome(RunComparisonResult result, String pairing, List<ItemResult> baselineItems, List<ItemResult> candidateItems)
extends Record
Result of comparing two runs: the engine output, the pairing strategy, and the runs' loaded
item entities so callers (the diff view) can derive per-case input text without re-querying.
The item lists are in the order the engine used to assign positional keys.
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonOutcome(RunComparisonResult result, String pairing, List<ItemResult> baselineItems, List<ItemResult> candidateItems) Creates an instance of aComparisonOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaselineItemsrecord component.Returns the value of thecandidateItemsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pairing()Returns the value of thepairingrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComparisonOutcome
public ComparisonOutcome(RunComparisonResult result, String pairing, List<ItemResult> baselineItems, List<ItemResult> candidateItems) Creates an instance of aComparisonOutcomerecord class.- Parameters:
result- the value for theresultrecord componentpairing- the value for thepairingrecord componentbaselineItems- the value for thebaselineItemsrecord componentcandidateItems- the value for thecandidateItemsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
pairing
Returns the value of thepairingrecord component.- Returns:
- the value of the
pairingrecord component
-
baselineItems
Returns the value of thebaselineItemsrecord component.- Returns:
- the value of the
baselineItemsrecord component
-
candidateItems
Returns the value of thecandidateItemsrecord component.- Returns:
- the value of the
candidateItemsrecord component
-