Record Class AnswerEventQuestionsActionResource.EventQuestions
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.impl.actions.AnswerEventQuestionsActionResource.EventQuestions
- Enclosing class:
AnswerEventQuestionsActionResource
public static record AnswerEventQuestionsActionResource.EventQuestions(List<AnswerEventQuestionsActionResource.EventQuestion> questions, Map<String,?> answers)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEventQuestions(List<AnswerEventQuestionsActionResource.EventQuestion> questions, Map<String, ?> answers) Creates an instance of aEventQuestionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanswers()Returns the value of theanswersrecord 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 thequestionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventQuestions
public EventQuestions(List<AnswerEventQuestionsActionResource.EventQuestion> questions, Map<String, ?> answers) Creates an instance of aEventQuestionsrecord class.- Parameters:
questions- the value for thequestionsrecord componentanswers- the value for theanswersrecord 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). -
questions
Returns the value of thequestionsrecord component.- Returns:
- the value of the
questionsrecord component
-
answers
-