Record Class ComparisonSupport.ComparisonOutcome

java.lang.Object
java.lang.Record
dev.dokimos.server.service.ComparisonSupport.ComparisonOutcome
Record Components:
result - the core comparison result
pairing - how items were paired: dataset_item_id or positional
baselineItems - the baseline run's loaded items, in pairing order
candidateItems - 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 Details

  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • result

      public RunComparisonResult result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • pairing

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

      public List<ItemResult> baselineItems()
      Returns the value of the baselineItems record component.
      Returns:
      the value of the baselineItems record component
    • candidateItems

      public List<ItemResult> candidateItems()
      Returns the value of the candidateItems record component.
      Returns:
      the value of the candidateItems record component