Package com.tnsai.coordination.debate
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
ConstructorsConstructorDescriptionPeerReviewIteration(int iterationNumber, String output, String feedback, boolean approved, Duration duration) Creates an instance of aPeerReviewIterationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapproved()Returns the value of theapprovedrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.feedback()Returns the value of thefeedbackrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationNumberrecord component.output()Returns the value of theoutputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PeerReviewIteration
public PeerReviewIteration(int iterationNumber, String output, String feedback, boolean approved, Duration duration) Creates an instance of aPeerReviewIterationrecord class.- Parameters:
iterationNumber- the value for theiterationNumberrecord componentoutput- the value for theoutputrecord componentfeedback- the value for thefeedbackrecord componentapproved- the value for theapprovedrecord componentduration- the value for thedurationrecord 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 '=='. -
iterationNumber
public int iterationNumber()Returns the value of theiterationNumberrecord component.- Returns:
- the value of the
iterationNumberrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
feedback
Returns the value of thefeedbackrecord component.- Returns:
- the value of the
feedbackrecord component
-
approved
public boolean approved()Returns the value of theapprovedrecord component.- Returns:
- the value of the
approvedrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-