Record Class CalendarEventResultBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.calendar.impl.rest.beans.CalendarEventResultBean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionCalendarEventResultBean(String calendarType, String model, String key, String label, List<CalendarEventResultBean.CalendarEventBean> events) Creates an instance of aCalendarEventResultBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecalendarTyperecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.label()Returns the value of thelabelrecord component.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CalendarEventResultBean
public CalendarEventResultBean(String calendarType, String model, String key, String label, List<CalendarEventResultBean.CalendarEventBean> events) Creates an instance of aCalendarEventResultBeanrecord class.- Parameters:
calendarType- the value for thecalendarTyperecord componentmodel- the value for themodelrecord componentkey- the value for thekeyrecord componentlabel- the value for thelabelrecord componentevents- the value for theeventsrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
calendarType
Returns the value of thecalendarTyperecord component.- Returns:
- the value of the
calendarTyperecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
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
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-