Record Class CoachAnswer
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.service.ai.CoachAnswer
- Record Components:
summary- résumé motivant de la séanceactions- actions concrètes recommandéesnextSession- proposition structurée pour la prochaine séancesafetyNote- consigne de sécurité à rappeler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDétails de la prochaine séance. -
Constructor Summary
ConstructorsConstructorDescriptionCoachAnswer(String summary, List<String> actions, CoachAnswer.NextSession nextSession, String safetyNote) Creates an instance of aCoachAnswerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenextSessionrecord component.Returns the value of thesafetyNoterecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CoachAnswer
public CoachAnswer(String summary, List<String> actions, CoachAnswer.NextSession nextSession, String safetyNote) Creates an instance of aCoachAnswerrecord class.- Parameters:
summary- the value for thesummaryrecord componentactions- the value for theactionsrecord componentnextSession- the value for thenextSessionrecord componentsafetyNote- the value for thesafetyNoterecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
summary
-
actions
-
nextSession
Returns the value of thenextSessionrecord component.- Returns:
- the value of the
nextSessionrecord component
-
safetyNote
Returns the value of thesafetyNoterecord component.- Returns:
- the value of the
safetyNoterecord component
-