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
ConstructorDescriptionEventRegistrationQuestion
(String key, String label, boolean mandatory, String questionType, List<EventRegistrationQuestionResource.EventRegistrationQuestionAnswerOptions> answerOptions, String relatedEntityKey) Creates an instance of aEventRegistrationQuestion
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanswerOptions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.label()
Returns the value of thelabel
record component.boolean
Returns the value of themandatory
record component.Returns the value of thequestionType
record component.Returns the value of therelatedEntityKey
record component.final String
toString()
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 aEventRegistrationQuestion
record class.- Parameters:
key
- the value for thekey
record componentlabel
- the value for thelabel
record componentmandatory
- the value for themandatory
record componentquestionType
- the value for thequestionType
record componentanswerOptions
- the value for theanswerOptions
record componentrelatedEntityKey
- the value for therelatedEntityKey
record 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 '=='. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
mandatory
public boolean mandatory()Returns the value of themandatory
record component.- Returns:
- the value of the
mandatory
record component
-
questionType
Returns the value of thequestionType
record component.- Returns:
- the value of the
questionType
record component
-
answerOptions
public List<EventRegistrationQuestionResource.EventRegistrationQuestionAnswerOptions> answerOptions()Returns the value of theanswerOptions
record component.- Returns:
- the value of the
answerOptions
record component
-