Record Class MembershipRegistrationQuestionResource.MembershipRegistrationQuestion
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.membership.impl.widgets.MembershipRegistrationQuestionResource.MembershipRegistrationQuestion
- Enclosing class:
MembershipRegistrationQuestionResource
public static record MembershipRegistrationQuestionResource.MembershipRegistrationQuestion(String key, String label, boolean mandatory, String questionType, List<MembershipRegistrationQuestionResource.MembershipRegistrationQuestionAnswerOptions> answerOptions, String relatedEntityKey)
extends Record
-
Constructor Summary
ConstructorDescriptionMembershipRegistrationQuestion
(String key, String label, boolean mandatory, String questionType, List<MembershipRegistrationQuestionResource.MembershipRegistrationQuestionAnswerOptions> answerOptions, String relatedEntityKey) Creates an instance of aMembershipRegistrationQuestion
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
-
MembershipRegistrationQuestion
public MembershipRegistrationQuestion(String key, String label, boolean mandatory, String questionType, List<MembershipRegistrationQuestionResource.MembershipRegistrationQuestionAnswerOptions> answerOptions, String relatedEntityKey) Creates an instance of aMembershipRegistrationQuestion
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<MembershipRegistrationQuestionResource.MembershipRegistrationQuestionAnswerOptions> answerOptions()Returns the value of theanswerOptions
record component.- Returns:
- the value of the
answerOptions
record component
-