Record Class IndividualResultDTO
java.lang.Object
java.lang.Record
com.endurancetrio.business.event.dto.IndividualResultDTO
- Record Components:
id- the unique identifier of the individual resultrace- the race context for this resultrank- the athlete's final rank in the race (may be null if unranked)penalty- the penalty applied to the athlete (may be null)athlete- the athlete who achieved this resultageGroup- the age group classification of the athlete (may be null)paraClass- the para-classification of the athlete (may be null)team- the team the athlete represented (may be null)bib- the athlete's bib numberswim- the swim split time (may be null)firstBike- the first bike split time (may be null)firstRun- the first run split time (may be null)t1- the first transition time (may be null)bike- the bike split time (may be null)t2- the second transition time (may be null)run- the run split time (may be null)secondRun- the second run split time (may be null)t3- the third transition time (may be null)secondBike- the second bike split time (may be null)total- the athlete's total race time (may be null)gap- the time gap to the overall winner (may be null)points- the points awarded for this result (may be null)
public record IndividualResultDTO(Long id, RaceDTO race, Integer rank, Penalty penalty, AthleteDTO athlete, AgeGroup ageGroup, ParaClass paraClass, TeamDTO team, String bib, Duration swim, Duration firstBike, Duration firstRun, Duration t1, Duration bike, Duration t2, Duration run, Duration secondRun, Duration t3, Duration secondBike, Duration total, Duration gap, Integer points)
extends Record
The
IndividualResultDTO represents an athlete's result in a race, including split times,
ranking, penalty, and the time gap to the overall winner.-
Constructor Summary
ConstructorsConstructorDescriptionIndividualResultDTO(Long id, RaceDTO race, Integer rank, Penalty penalty, AthleteDTO athlete, AgeGroup ageGroup, ParaClass paraClass, TeamDTO team, String bib, Duration swim, Duration firstBike, Duration firstRun, Duration t1, Duration bike, Duration t2, Duration run, Duration secondRun, Duration t3, Duration secondBike, Duration total, Duration gap, Integer points) Creates an instance of aIndividualResultDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionageGroup()Returns the value of theageGrouprecord component.athlete()Returns the value of theathleterecord component.bib()Returns the value of thebibrecord component.bike()Returns the value of thebikerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstBikerecord component.firstRun()Returns the value of thefirstRunrecord component.gap()Returns the value of thegaprecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theparaClassrecord component.penalty()Returns the value of thepenaltyrecord component.points()Returns the value of thepointsrecord component.race()Returns the value of theracerecord component.rank()Returns the value of therankrecord component.run()Returns the value of therunrecord component.Returns the value of thesecondBikerecord component.Returns the value of thesecondRunrecord component.swim()Returns the value of theswimrecord component.t1()Returns the value of thet1record component.t2()Returns the value of thet2record component.t3()Returns the value of thet3record component.team()Returns the value of theteamrecord component.final StringtoString()Returns a string representation of this record class.total()Returns the value of thetotalrecord component.
-
Constructor Details
-
IndividualResultDTO
public IndividualResultDTO(Long id, RaceDTO race, Integer rank, Penalty penalty, AthleteDTO athlete, AgeGroup ageGroup, ParaClass paraClass, TeamDTO team, String bib, Duration swim, Duration firstBike, Duration firstRun, Duration t1, Duration bike, Duration t2, Duration run, Duration secondRun, Duration t3, Duration secondBike, Duration total, Duration gap, Integer points) Creates an instance of aIndividualResultDTOrecord class.- Parameters:
id- the value for theidrecord componentrace- the value for theracerecord componentrank- the value for therankrecord componentpenalty- the value for thepenaltyrecord componentathlete- the value for theathleterecord componentageGroup- the value for theageGrouprecord componentparaClass- the value for theparaClassrecord componentteam- the value for theteamrecord componentbib- the value for thebibrecord componentswim- the value for theswimrecord componentfirstBike- the value for thefirstBikerecord componentfirstRun- the value for thefirstRunrecord componentt1- the value for thet1record componentbike- the value for thebikerecord componentt2- the value for thet2record componentrun- the value for therunrecord componentsecondRun- the value for thesecondRunrecord componentt3- the value for thet3record componentsecondBike- the value for thesecondBikerecord componenttotal- the value for thetotalrecord componentgap- the value for thegaprecord componentpoints- the value for thepointsrecord 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
-
race
Returns the value of theracerecord component.- Returns:
- the value of the
racerecord component
-
rank
Returns the value of therankrecord component.- Returns:
- the value of the
rankrecord component
-
penalty
Returns the value of thepenaltyrecord component.- Returns:
- the value of the
penaltyrecord component
-
athlete
Returns the value of theathleterecord component.- Returns:
- the value of the
athleterecord component
-
ageGroup
Returns the value of theageGrouprecord component.- Returns:
- the value of the
ageGrouprecord component
-
paraClass
Returns the value of theparaClassrecord component.- Returns:
- the value of the
paraClassrecord component
-
team
Returns the value of theteamrecord component.- Returns:
- the value of the
teamrecord component
-
bib
Returns the value of thebibrecord component.- Returns:
- the value of the
bibrecord component
-
swim
Returns the value of theswimrecord component.- Returns:
- the value of the
swimrecord component
-
firstBike
Returns the value of thefirstBikerecord component.- Returns:
- the value of the
firstBikerecord component
-
firstRun
Returns the value of thefirstRunrecord component.- Returns:
- the value of the
firstRunrecord component
-
t1
Returns the value of thet1record component.- Returns:
- the value of the
t1record component
-
bike
Returns the value of thebikerecord component.- Returns:
- the value of the
bikerecord component
-
t2
Returns the value of thet2record component.- Returns:
- the value of the
t2record component
-
run
Returns the value of therunrecord component.- Returns:
- the value of the
runrecord component
-
secondRun
Returns the value of thesecondRunrecord component.- Returns:
- the value of the
secondRunrecord component
-
t3
Returns the value of thet3record component.- Returns:
- the value of the
t3record component
-
secondBike
Returns the value of thesecondBikerecord component.- Returns:
- the value of the
secondBikerecord component
-
total
Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
gap
Returns the value of thegaprecord component.- Returns:
- the value of the
gaprecord component
-
points
Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-