Record Class EventRegistrationQuestionResource.EventRegistrationQuestion
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.impl.widget.eventregistration.EventRegistrationQuestionResource.EventRegistrationQuestion
- Enclosing class:
EventRegistrationQuestionResource
-
Constructor Summary
ConstructorsConstructorDescriptionEventRegistrationQuestion(String key, String label, boolean mandatory, String questionType, List<EventRegistrationQuestionResource.EventRegistrationQuestionAnswerOptions> answerOptions, String relatedEntityKey) Creates an instance of aEventRegistrationQuestionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanswerOptionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.label()Returns the value of thelabelrecord component.booleanReturns the value of themandatoryrecord component.Returns the value of thequestionTyperecord component.Returns the value of therelatedEntityKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventRegistrationQuestion
public EventRegistrationQuestion(String key, String label, boolean mandatory, String questionType, List<EventRegistrationQuestionResource.EventRegistrationQuestionAnswerOptions> answerOptions, String relatedEntityKey) Creates an instance of aEventRegistrationQuestionrecord class.- Parameters:
key- the value for thekeyrecord componentlabel- the value for thelabelrecord componentmandatory- the value for themandatoryrecord componentquestionType- the value for thequestionTyperecord componentanswerOptions- the value for theanswerOptionsrecord componentrelatedEntityKey- the value for therelatedEntityKeyrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
mandatory
public boolean mandatory()Returns the value of themandatoryrecord component.- Returns:
- the value of the
mandatoryrecord component
-
questionType
Returns the value of thequestionTyperecord component.- Returns:
- the value of the
questionTyperecord component
-
answerOptions
public List<EventRegistrationQuestionResource.EventRegistrationQuestionAnswerOptions> answerOptions()Returns the value of theanswerOptionsrecord component.- Returns:
- the value of the
answerOptionsrecord component
-