Record Class AbstractMembershipQuestionResource.MembershipRegistrationQuestion
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.membership.api.widgets.AbstractMembershipQuestionResource.MembershipRegistrationQuestion
- Enclosing class:
AbstractMembershipQuestionResource
-
Constructor Summary
ConstructorsConstructorDescriptionMembershipRegistrationQuestion(String key, String label, boolean mandatory, String questionType, List<AbstractMembershipQuestionResource.MembershipRegistrationQuestionAnswerOptions> answerOptions, String relatedEntityKey) Creates an instance of aMembershipRegistrationQuestionrecord 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
-
MembershipRegistrationQuestion
public MembershipRegistrationQuestion(String key, String label, boolean mandatory, String questionType, List<AbstractMembershipQuestionResource.MembershipRegistrationQuestionAnswerOptions> answerOptions, String relatedEntityKey) Creates an instance of aMembershipRegistrationQuestionrecord 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
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 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<AbstractMembershipQuestionResource.MembershipRegistrationQuestionAnswerOptions> answerOptions()Returns the value of theanswerOptionsrecord component.- Returns:
- the value of the
answerOptionsrecord component
-