Record Class EventRegistrationModuleCollector.EventRegistrationModuleInformation
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.api.eventregistration.EventRegistrationModuleCollector.EventRegistrationModuleInformation
- Enclosing interface:
- EventRegistrationModuleCollector
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theadditionalInformationrecord component.booleanReturns the value of thecheckboxHiddenrecord component.booleanchecked()Returns the value of thecheckedrecord component.combines different information beans of the same event editable is true if both beans have it set to true and neither has checkboxHidden set to true checked is true if both beans have it set to true and neither has checkboxHidden set to true checkboxHidden is true if either bean has it set to true additionalInformation is combined, with priority given to duplicate from the left beandisplay()Returns the value of thedisplayrecord component.booleaneditable()Returns the value of theeditablerecord component.editableCheckbox(String key, String display, boolean checked, String type) editableCheckbox(String key, String display, boolean checked, String type, Map<String, Object> additionalInformation) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hiddenCheckbox(String key, String display, String type) informationOnly(Map<String, Object> additionalInformation) informationOnly(Map<String, Object> additionalInformation, String type) key()Returns the value of thekeyrecord component.readonlyCheckbox(String key, String display, boolean checked, String type) readonlyCheckbox(String key, String display, boolean checked, String type, Map<String, Object> additionalInformation) booleanfinal StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withInformation(Map<String, Object> information) 
- 
Constructor Details- 
EventRegistrationModuleInformationpublic EventRegistrationModuleInformation(String key, String display, boolean editable, boolean checked, boolean checkboxHidden, String type, Map<String, Object> additionalInformation) Creates an instance of aEventRegistrationModuleInformationrecord class.- Parameters:
- key- the value for the- keyrecord component
- display- the value for the- displayrecord component
- editable- the value for the- editablerecord component
- checked- the value for the- checkedrecord component
- checkboxHidden- the value for the- checkboxHiddenrecord component
- type- the value for the- typerecord component
- additionalInformation- the value for the- additionalInformationrecord component
 
 
- 
- 
Method Details
- 
readonlyCheckboxpublic static EventRegistrationModuleCollector.EventRegistrationModuleInformation readonlyCheckbox(String key, String display, boolean checked, String type) 
- 
readonlyCheckbox
- 
editableCheckboxpublic static EventRegistrationModuleCollector.EventRegistrationModuleInformation editableCheckbox(String key, String display, boolean checked, String type) 
- 
editableCheckbox
- 
informationOnlypublic static EventRegistrationModuleCollector.EventRegistrationModuleInformation informationOnly(Map<String, Object> additionalInformation) 
- 
informationOnlypublic static EventRegistrationModuleCollector.EventRegistrationModuleInformation informationOnly(Map<String, Object> additionalInformation, String type) 
- 
combinepublic EventRegistrationModuleCollector.EventRegistrationModuleInformation combine(EventRegistrationModuleCollector.EventRegistrationModuleInformation other) combines different information beans of the same event editable is true if both beans have it set to true and neither has checkboxHidden set to true checked is true if both beans have it set to true and neither has checkboxHidden set to true checkboxHidden is true if either bean has it set to true additionalInformation is combined, with priority given to duplicate from the left bean- Parameters:
- other- the other information bean
- Returns:
- a new information bean
 
- 
shouldUseSettingspublic boolean shouldUseSettings()
- 
withInformationpublic EventRegistrationModuleCollector.EventRegistrationModuleInformation withInformation(Map<String, Object> information) 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
- 
displayReturns the value of thedisplayrecord component.- Returns:
- the value of the displayrecord component
 
- 
editablepublic boolean editable()Returns the value of theeditablerecord component.- Returns:
- the value of the editablerecord component
 
- 
checkedpublic boolean checked()Returns the value of thecheckedrecord component.- Returns:
- the value of the checkedrecord component
 
- 
checkboxHiddenpublic boolean checkboxHidden()Returns the value of thecheckboxHiddenrecord component.- Returns:
- the value of the checkboxHiddenrecord component
 
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
additionalInformationReturns the value of theadditionalInformationrecord component.- Returns:
- the value of the additionalInformationrecord component