Package com.tnsai.coordination.council
Record Class CouncilReview
java.lang.Object
java.lang.Record
com.tnsai.coordination.council.CouncilReview
- Record Components:
reviewerName- the model name of the reviewerevaluation- the full review textparsedRanking- the extracted ranking labels in order (best to worst)
public record CouncilReview(String reviewerName, String evaluation, List<String> parsedRanking)
extends Record
Peer review from a council member (Stage 2).
- Since:
- 0.0.5
-
Constructor Summary
ConstructorsConstructorDescriptionCouncilReview(String reviewerName, String evaluation, List<String> parsedRanking) Creates an instance of aCouncilReviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns true if a ranking was successfully parsed from the review.Returns the value of theparsedRankingrecord component.Returns the value of thereviewerNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CouncilReview
Creates an instance of aCouncilReviewrecord class.- Parameters:
reviewerName- the value for thereviewerNamerecord componentevaluation- the value for theevaluationrecord componentparsedRanking- the value for theparsedRankingrecord component
-
-
Method Details
-
hasRanking
public boolean hasRanking()Returns true if a ranking was successfully parsed from the review. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
reviewerName
Returns the value of thereviewerNamerecord component.- Returns:
- the value of the
reviewerNamerecord component
-
evaluation
Returns the value of theevaluationrecord component.- Returns:
- the value of the
evaluationrecord component
-
parsedRanking
Returns the value of theparsedRankingrecord component.- Returns:
- the value of the
parsedRankingrecord component
-