Record Class RecordTracker.WorldRecord
java.lang.Object
java.lang.Record
org.episteme.social.sports.RecordTracker.WorldRecord
- All Implemented Interfaces:
Serializable
- Enclosing class:
RecordTracker
public static record RecordTracker.WorldRecord(String discipline, String category, Real performance, String unit, String athlete, String nationality, TimeCoordinate date, String venue, boolean isHigherBetter)
extends Record
implements Serializable
Data model for a world record entry.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWorldRecord(String discipline, String category, Real performance, String unit, String athlete, String nationality, TimeCoordinate date, String venue, boolean isHigherBetter) Creates an instance of aWorldRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionathlete()Returns the value of theathleterecord component.category()Returns the value of thecategoryrecord component.date()Returns the value of thedaterecord component.Returns the value of thedisciplinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisHigherBetterrecord component.Returns the value of thenationalityrecord component.Returns the value of theperformancerecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.venue()Returns the value of thevenuerecord component.
-
Constructor Details
-
WorldRecord
public WorldRecord(String discipline, String category, Real performance, String unit, String athlete, String nationality, TimeCoordinate date, String venue, boolean isHigherBetter) Creates an instance of aWorldRecordrecord class.- Parameters:
discipline- the value for thedisciplinerecord componentcategory- the value for thecategoryrecord componentperformance- the value for theperformancerecord componentunit- the value for theunitrecord componentathlete- the value for theathleterecord componentnationality- the value for thenationalityrecord componentdate- the value for thedaterecord componentvenue- the value for thevenuerecord componentisHigherBetter- the value for theisHigherBetterrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
discipline
Returns the value of thedisciplinerecord component.- Returns:
- the value of the
disciplinerecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
performance
Returns the value of theperformancerecord component.- Returns:
- the value of the
performancerecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
athlete
Returns the value of theathleterecord component.- Returns:
- the value of the
athleterecord component
-
nationality
Returns the value of thenationalityrecord component.- Returns:
- the value of the
nationalityrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-
isHigherBetter
public boolean isHigherBetter()Returns the value of theisHigherBetterrecord component.- Returns:
- the value of the
isHigherBetterrecord component
-