Record Class CalendarEventResultBean.CalendarEventBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.calendar.impl.rest.beans.CalendarEventResultBean.CalendarEventBean
- Enclosing class:
CalendarEventResultBean
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarEventBean(long start, long end, String label, @Nullable String description, String conflict, @Nullable CalendarEventResultBean.SourceBean source, String color, boolean isReadonly, boolean isEditable) Creates an instance of aCalendarEventBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.conflict()Returns the value of theconflictrecord component.@Nullable StringReturns the value of thedescriptionrecord component.longend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisEditablerecord component.booleanReturns the value of theisReadonlyrecord component.label()Returns the value of thelabelrecord component.@Nullable CalendarEventResultBean.SourceBeansource()Returns the value of thesourcerecord component.longstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CalendarEventBean
public CalendarEventBean(long start, long end, String label, @Nullable String description, String conflict, @Nullable CalendarEventResultBean.SourceBean source, String color, boolean isReadonly, boolean isEditable) Creates an instance of aCalendarEventBeanrecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentconflict- the value for theconflictrecord componentsource- the value for thesourcerecord componentcolor- the value for thecolorrecord componentisReadonly- the value for theisReadonlyrecord componentisEditable- the value for theisEditablerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
start
public long start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public long end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
conflict
Returns the value of theconflictrecord component.- Returns:
- the value of the
conflictrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
isReadonly
public boolean isReadonly()Returns the value of theisReadonlyrecord component.- Returns:
- the value of the
isReadonlyrecord component
-
isEditable
public boolean isEditable()Returns the value of theisEditablerecord component.- Returns:
- the value of the
isEditablerecord component
-