Record Class EventRegistrationModuleCollector.EventRegistrationModuleInformation
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.api.eventregistration.EventRegistrationModuleCollector.EventRegistrationModuleInformation
- Enclosing interface:
EventRegistrationModuleCollector
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
EventRegistrationModuleInformation
public 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 thekeyrecord componentdisplay- the value for thedisplayrecord componenteditable- the value for theeditablerecord componentchecked- the value for thecheckedrecord componentcheckboxHidden- the value for thecheckboxHiddenrecord componenttype- the value for thetyperecord componentadditionalInformation- the value for theadditionalInformationrecord component
-
-
Method Details
-
readonlyCheckbox
public static EventRegistrationModuleCollector.EventRegistrationModuleInformation readonlyCheckbox(String key, String display, boolean checked, String type) -
readonlyCheckbox
-
editableCheckbox
public static EventRegistrationModuleCollector.EventRegistrationModuleInformation editableCheckbox(String key, String display, boolean checked, String type) -
editableCheckbox
-
informationOnly
public static EventRegistrationModuleCollector.EventRegistrationModuleInformation informationOnly(Map<String, Object> additionalInformation) -
informationOnly
public static EventRegistrationModuleCollector.EventRegistrationModuleInformation informationOnly(Map<String, Object> additionalInformation, String type) -
combine
public 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
-
shouldUseSettings
public boolean shouldUseSettings() -
withInformation
public EventRegistrationModuleCollector.EventRegistrationModuleInformation withInformation(Map<String, Object> information) -
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
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
editable
public boolean editable()Returns the value of theeditablerecord component.- Returns:
- the value of the
editablerecord component
-
checked
public boolean checked()Returns the value of thecheckedrecord component.- Returns:
- the value of the
checkedrecord component
-
checkboxHidden
public boolean checkboxHidden()Returns the value of thecheckboxHiddenrecord component.- Returns:
- the value of the
checkboxHiddenrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
additionalInformation