Record Class PeerReviewExecutor.PeerReviewIteration

java.lang.Object
java.lang.Record
com.tnsai.coordination.debate.PeerReviewExecutor.PeerReviewIteration
Enclosing class:
PeerReviewExecutor

public static record PeerReviewExecutor.PeerReviewIteration(int iterationNumber, String output, String feedback, boolean approved, Duration duration) extends Record
A single iteration of peer review.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PeerReviewIteration(int iterationNumber, String output, String feedback, boolean approved, Duration duration)
    Creates an instance of a PeerReviewIteration record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the approved record component.
    Returns the value of the duration record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the feedback record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the iterationNumber record component.
    Returns the value of the output record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • PeerReviewIteration

      public PeerReviewIteration(int iterationNumber, String output, String feedback, boolean approved, Duration duration)
      Creates an instance of a PeerReviewIteration record class.
      Parameters:
      iterationNumber - the value for the iterationNumber record component
      output - the value for the output record component
      feedback - the value for the feedback record component
      approved - the value for the approved record component
      duration - the value for the duration record component
  • 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. 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.
    • iterationNumber

      public int iterationNumber()
      Returns the value of the iterationNumber record component.
      Returns:
      the value of the iterationNumber record component
    • output

      public String output()
      Returns the value of the output record component.
      Returns:
      the value of the output record component
    • feedback

      public String feedback()
      Returns the value of the feedback record component.
      Returns:
      the value of the feedback record component
    • approved

      public boolean approved()
      Returns the value of the approved record component.
      Returns:
      the value of the approved record component
    • duration

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