Record Class DebateResult

java.lang.Object
java.lang.Record
com.tnsai.coordination.debate.DebateResult

public record DebateResult(String verdict, double confidence, List<DebateRound> rounds, int roundsUsed, String proponentSummary, String opponentSummary, Duration duration) extends Record
Result of a debate execution.
Since:
0.0.5
  • Constructor Summary

    Constructors
    Constructor
    Description
    DebateResult(String verdict, double confidence, List<DebateRound> rounds, int roundsUsed, String proponentSummary, String opponentSummary, Duration duration)
    Creates an instance of a DebateResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the confidence record component.
    Returns the value of the duration record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns true if the judge reached a decision with high confidence.
    Returns the value of the opponentSummary record component.
    Returns the value of the proponentSummary record component.
    Returns the value of the rounds record component.
    int
    Returns the value of the roundsUsed record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the verdict record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DebateResult

      public DebateResult(String verdict, double confidence, List<DebateRound> rounds, int roundsUsed, String proponentSummary, String opponentSummary, Duration duration)
      Creates an instance of a DebateResult record class.
      Parameters:
      verdict - the value for the verdict record component
      confidence - the value for the confidence record component
      rounds - the value for the rounds record component
      roundsUsed - the value for the roundsUsed record component
      proponentSummary - the value for the proponentSummary record component
      opponentSummary - the value for the opponentSummary record component
      duration - the value for the duration record component
  • Method Details

    • isHighConfidence

      public boolean isHighConfidence()
      Returns true if the judge reached a decision with high confidence.
    • 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.
    • verdict

      public String verdict()
      Returns the value of the verdict record component.
      Returns:
      the value of the verdict record component
    • confidence

      public double confidence()
      Returns the value of the confidence record component.
      Returns:
      the value of the confidence record component
    • rounds

      public List<DebateRound> rounds()
      Returns the value of the rounds record component.
      Returns:
      the value of the rounds record component
    • roundsUsed

      public int roundsUsed()
      Returns the value of the roundsUsed record component.
      Returns:
      the value of the roundsUsed record component
    • proponentSummary

      public String proponentSummary()
      Returns the value of the proponentSummary record component.
      Returns:
      the value of the proponentSummary record component
    • opponentSummary

      public String opponentSummary()
      Returns the value of the opponentSummary record component.
      Returns:
      the value of the opponentSummary record component
    • duration

      public Duration duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component