Package com.tnsai.coordination.debate
Record Class PeerReviewExecutor.PeerReviewResult
java.lang.Object
java.lang.Record
com.tnsai.coordination.debate.PeerReviewExecutor.PeerReviewResult
- Enclosing class:
PeerReviewExecutor
public static record PeerReviewExecutor.PeerReviewResult(String finalOutput, boolean approved, List<PeerReviewExecutor.PeerReviewIteration> iterations, int iterationsUsed, Duration duration)
extends Record
Result of the peer review process.
-
Constructor Summary
ConstructorsConstructorDescriptionPeerReviewResult(String finalOutput, boolean approved, List<PeerReviewExecutor.PeerReviewIteration> iterations, int iterationsUsed, Duration duration) Creates an instance of aPeerReviewResultrecord 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.Returns the value of thefinalOutputrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theiterationsrecord component.intReturns the value of theiterationsUsedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PeerReviewResult
public PeerReviewResult(String finalOutput, boolean approved, List<PeerReviewExecutor.PeerReviewIteration> iterations, int iterationsUsed, Duration duration) Creates an instance of aPeerReviewResultrecord class.- Parameters:
finalOutput- the value for thefinalOutputrecord componentapproved- the value for theapprovedrecord componentiterations- the value for theiterationsrecord componentiterationsUsed- the value for theiterationsUsedrecord 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 '=='. -
finalOutput
Returns the value of thefinalOutputrecord component.- Returns:
- the value of the
finalOutputrecord component
-
approved
public boolean approved()Returns the value of theapprovedrecord component.- Returns:
- the value of the
approvedrecord component
-
iterations
Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
iterationsUsed
public int iterationsUsed()Returns the value of theiterationsUsedrecord component.- Returns:
- the value of the
iterationsUsedrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-