Record Class EventOverviewDTO
java.lang.Object
java.lang.Record
com.endurancetrio.business.event.dto.EventOverviewDTO
- Record Components:
id- the unique identifier of the eventtitle- the title of the eventstartDate- the start date of the eventendDate- the end date of the eventcity- the city where the event takes placecounty- the county where the event takes placedistrict- the district where the event takes placeorganizers- the organizers of the eventraces- the races associated with the eventfiles- the files associated with the event
public record EventOverviewDTO(Long id, String title, LocalDate startDate, LocalDate endDate, String city, String county, String district, List<OrganizerDTO> organizers, List<RaceDTO> races, List<EventFileDTO> files)
extends Record
The
EventOverviewDTO provides a summary of an event, including its basic details,
location, organizers, and races.-
Constructor Summary
ConstructorsConstructorDescriptionEventOverviewDTO(Long id, String title, LocalDate startDate, LocalDate endDate, String city, String county, String district, List<OrganizerDTO> organizers, List<RaceDTO> races, List<EventFileDTO> files) Creates an instance of aEventOverviewDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncity()Returns the value of thecityrecord component.county()Returns the value of thecountyrecord component.district()Returns the value of thedistrictrecord component.endDate()Returns the value of theendDaterecord component.final booleanIndicates whether some other object is "equal to" this one.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theorganizersrecord component.races()Returns the value of theracesrecord component.Returns the value of thestartDaterecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventOverviewDTO
public EventOverviewDTO(Long id, String title, LocalDate startDate, LocalDate endDate, String city, String county, String district, List<OrganizerDTO> organizers, List<RaceDTO> races, List<EventFileDTO> files) Creates an instance of aEventOverviewDTOrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentstartDate- the value for thestartDaterecord componentendDate- the value for theendDaterecord componentcity- the value for thecityrecord componentcounty- the value for thecountyrecord componentdistrict- the value for thedistrictrecord componentorganizers- the value for theorganizersrecord componentraces- the value for theracesrecord componentfiles- the value for thefilesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
endDate
Returns the value of theendDaterecord component.- Returns:
- the value of the
endDaterecord component
-
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
county
Returns the value of thecountyrecord component.- Returns:
- the value of the
countyrecord component
-
district
Returns the value of thedistrictrecord component.- Returns:
- the value of the
districtrecord component
-
organizers
Returns the value of theorganizersrecord component.- Returns:
- the value of the
organizersrecord component
-
races
Returns the value of theracesrecord component.- Returns:
- the value of the
racesrecord component
-
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-