Record Class EventRegistrationModuleCollector.EventRegistrationModuleInformation
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.api.eventregistration.EventRegistrationModuleCollector.EventRegistrationModuleInformation
- Enclosing interface:
EventRegistrationModuleCollector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalInformation
record component.boolean
Returns the value of thecheckboxHidden
record component.boolean
checked()
Returns the value of thechecked
record 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 thedisplay
record component.boolean
editable()
Returns the value of theeditable
record component.editableCheckbox
(String key, String display, boolean checked, String type) editableCheckbox
(String key, String display, boolean checked, String type, Map<String, Object> additionalInformation) final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theforbidden
record component.forbiddenCheckbox
(String key, String display, String type, Map<String, Object> additionalInformation) final int
hashCode()
Returns a hash code value for this object.hiddenCheckbox
(String key, String display, String type) informationOnly
(Map<String, Object> additionalInformation) key()
Returns the value of thekey
record component.readonlyCheckbox
(String key, String display, boolean checked, String type) readonlyCheckbox
(String key, String display, boolean checked, String type, Map<String, Object> additionalInformation) boolean
final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.withInformation
(Map<String, Object> information)
-
Constructor Details
-
EventRegistrationModuleInformation
public EventRegistrationModuleInformation(String key, String display, boolean editable, boolean checked, boolean checkboxHidden, boolean forbidden, String type, Map<String, Object> additionalInformation) Creates an instance of aEventRegistrationModuleInformation
record class.- Parameters:
key
- the value for thekey
record componentdisplay
- the value for thedisplay
record componenteditable
- the value for theeditable
record componentchecked
- the value for thechecked
record componentcheckboxHidden
- the value for thecheckboxHidden
record componentforbidden
- the value for theforbidden
record componenttype
- the value for thetype
record componentadditionalInformation
- the value for theadditionalInformation
record component
-
-
Method Details
-
forbiddenCheckbox
-
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) -
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
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
-
display
Returns the value of thedisplay
record component.- Returns:
- the value of the
display
record component
-
editable
public boolean editable()Returns the value of theeditable
record component.- Returns:
- the value of the
editable
record component
-
checked
public boolean checked()Returns the value of thechecked
record component.- Returns:
- the value of the
checked
record component
-
checkboxHidden
public boolean checkboxHidden()Returns the value of thecheckboxHidden
record component.- Returns:
- the value of the
checkboxHidden
record component
-
forbidden
public boolean forbidden()Returns the value of theforbidden
record component.- Returns:
- the value of the
forbidden
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
additionalInformation
Returns the value of theadditionalInformation
record component.- Returns:
- the value of the
additionalInformation
record component