Record Class CalendarResourceReservationDto
java.lang.Object
java.lang.Record
com.suncode.pwfl.calendar.resource.CalendarResourceReservationDto
public record CalendarResourceReservationDto(long calendarResourceId, com.suncode.pwfl.calendar.resource.CalendarResourceReservationDto.ReservationSource source, Long eventId, String processId, boolean allDay, LocalDateTime startDateTimeUtc, LocalDateTime endDateTimeUtc)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarResourceReservationDto(long calendarResourceId, com.suncode.pwfl.calendar.resource.CalendarResourceReservationDto.ReservationSource source, Long eventId, String processId, boolean allDay, LocalDateTime startDateTimeUtc, LocalDateTime endDateTimeUtc) Creates an instance of aCalendarResourceReservationDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallDay()Returns the value of theallDayrecord component.longReturns the value of thecalendarResourceIdrecord component.Returns the value of theendDateTimeUtcrecord component.final booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprocessIdrecord component.com.suncode.pwfl.calendar.resource.CalendarResourceReservationDto.ReservationSourcesource()Returns the value of thesourcerecord component.Returns the value of thestartDateTimeUtcrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CalendarResourceReservationDto
public CalendarResourceReservationDto(long calendarResourceId, com.suncode.pwfl.calendar.resource.CalendarResourceReservationDto.ReservationSource source, Long eventId, String processId, boolean allDay, LocalDateTime startDateTimeUtc, LocalDateTime endDateTimeUtc) Creates an instance of aCalendarResourceReservationDtorecord class.- Parameters:
calendarResourceId- the value for thecalendarResourceIdrecord componentsource- the value for thesourcerecord componenteventId- the value for theeventIdrecord componentprocessId- the value for theprocessIdrecord componentallDay- the value for theallDayrecord componentstartDateTimeUtc- the value for thestartDateTimeUtcrecord componentendDateTimeUtc- the value for theendDateTimeUtcrecord component
-
-
Method Details
-
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 '=='. -
calendarResourceId
public long calendarResourceId()Returns the value of thecalendarResourceIdrecord component.- Returns:
- the value of the
calendarResourceIdrecord component
-
source
public com.suncode.pwfl.calendar.resource.CalendarResourceReservationDto.ReservationSource source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
eventId
Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
processId
Returns the value of theprocessIdrecord component.- Returns:
- the value of the
processIdrecord component
-
allDay
public boolean allDay()Returns the value of theallDayrecord component.- Returns:
- the value of the
allDayrecord component
-
startDateTimeUtc
Returns the value of thestartDateTimeUtcrecord component.- Returns:
- the value of the
startDateTimeUtcrecord component
-
endDateTimeUtc
Returns the value of theendDateTimeUtcrecord component.- Returns:
- the value of the
endDateTimeUtcrecord component
-