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

    Constructors
    Constructor
    Description
    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 a CalendarResourceReservationDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the allDay record component.
    long
    Returns the value of the calendarResourceId record component.
    Returns the value of the endDateTimeUtc record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the eventId record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the processId record component.
    com.suncode.pwfl.calendar.resource.CalendarResourceReservationDto.ReservationSource
    Returns the value of the source record component.
    Returns the value of the startDateTimeUtc record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a CalendarResourceReservationDto record class.
      Parameters:
      calendarResourceId - the value for the calendarResourceId record component
      source - the value for the source record component
      eventId - the value for the eventId record component
      processId - the value for the processId record component
      allDay - the value for the allDay record component
      startDateTimeUtc - the value for the startDateTimeUtc record component
      endDateTimeUtc - the value for the endDateTimeUtc record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • calendarResourceId

      public long calendarResourceId()
      Returns the value of the calendarResourceId record component.
      Returns:
      the value of the calendarResourceId record component
    • source

      public com.suncode.pwfl.calendar.resource.CalendarResourceReservationDto.ReservationSource source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • eventId

      public Long eventId()
      Returns the value of the eventId record component.
      Returns:
      the value of the eventId record component
    • processId

      public String processId()
      Returns the value of the processId record component.
      Returns:
      the value of the processId record component
    • allDay

      public boolean allDay()
      Returns the value of the allDay record component.
      Returns:
      the value of the allDay record component
    • startDateTimeUtc

      public LocalDateTime startDateTimeUtc()
      Returns the value of the startDateTimeUtc record component.
      Returns:
      the value of the startDateTimeUtc record component
    • endDateTimeUtc

      public LocalDateTime endDateTimeUtc()
      Returns the value of the endDateTimeUtc record component.
      Returns:
      the value of the endDateTimeUtc record component