Record Class IndividualResultDTO

java.lang.Object
java.lang.Record
com.endurancetrio.business.event.dto.IndividualResultDTO
Record Components:
id - the unique identifier of the individual result
race - the race context for this result
rank - 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 result
ageGroup - 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 number
swim - 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 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 a IndividualResultDTO record class.
      Parameters:
      id - the value for the id record component
      race - the value for the race record component
      rank - the value for the rank record component
      penalty - the value for the penalty record component
      athlete - the value for the athlete record component
      ageGroup - the value for the ageGroup record component
      paraClass - the value for the paraClass record component
      team - the value for the team record component
      bib - the value for the bib record component
      swim - the value for the swim record component
      firstBike - the value for the firstBike record component
      firstRun - the value for the firstRun record component
      t1 - the value for the t1 record component
      bike - the value for the bike record component
      t2 - the value for the t2 record component
      run - the value for the run record component
      secondRun - the value for the secondRun record component
      t3 - the value for the t3 record component
      secondBike - the value for the secondBike record component
      total - the value for the total record component
      gap - the value for the gap record component
      points - the value for the points 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • id

      public Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • race

      public RaceDTO race()
      Returns the value of the race record component.
      Returns:
      the value of the race record component
    • rank

      public Integer rank()
      Returns the value of the rank record component.
      Returns:
      the value of the rank record component
    • penalty

      public Penalty penalty()
      Returns the value of the penalty record component.
      Returns:
      the value of the penalty record component
    • athlete

      public AthleteDTO athlete()
      Returns the value of the athlete record component.
      Returns:
      the value of the athlete record component
    • ageGroup

      public AgeGroup ageGroup()
      Returns the value of the ageGroup record component.
      Returns:
      the value of the ageGroup record component
    • paraClass

      public ParaClass paraClass()
      Returns the value of the paraClass record component.
      Returns:
      the value of the paraClass record component
    • team

      public TeamDTO team()
      Returns the value of the team record component.
      Returns:
      the value of the team record component
    • bib

      public String bib()
      Returns the value of the bib record component.
      Returns:
      the value of the bib record component
    • swim

      public Duration swim()
      Returns the value of the swim record component.
      Returns:
      the value of the swim record component
    • firstBike

      public Duration firstBike()
      Returns the value of the firstBike record component.
      Returns:
      the value of the firstBike record component
    • firstRun

      public Duration firstRun()
      Returns the value of the firstRun record component.
      Returns:
      the value of the firstRun record component
    • t1

      public Duration t1()
      Returns the value of the t1 record component.
      Returns:
      the value of the t1 record component
    • bike

      public Duration bike()
      Returns the value of the bike record component.
      Returns:
      the value of the bike record component
    • t2

      public Duration t2()
      Returns the value of the t2 record component.
      Returns:
      the value of the t2 record component
    • run

      public Duration run()
      Returns the value of the run record component.
      Returns:
      the value of the run record component
    • secondRun

      public Duration secondRun()
      Returns the value of the secondRun record component.
      Returns:
      the value of the secondRun record component
    • t3

      public Duration t3()
      Returns the value of the t3 record component.
      Returns:
      the value of the t3 record component
    • secondBike

      public Duration secondBike()
      Returns the value of the secondBike record component.
      Returns:
      the value of the secondBike record component
    • total

      public Duration total()
      Returns the value of the total record component.
      Returns:
      the value of the total record component
    • gap

      public Duration gap()
      Returns the value of the gap record component.
      Returns:
      the value of the gap record component
    • points

      public Integer points()
      Returns the value of the points record component.
      Returns:
      the value of the points record component