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 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 a WorldRecord record class.
      Parameters:
      discipline - the value for the discipline record component
      category - the value for the category record component
      performance - the value for the performance record component
      unit - the value for the unit record component
      athlete - the value for the athlete record component
      nationality - the value for the nationality record component
      date - the value for the date record component
      venue - the value for the venue record component
      isHigherBetter - the value for the isHigherBetter 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 the compare method from their corresponding wrapper classes.
      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.
    • discipline

      public String discipline()
      Returns the value of the discipline record component.
      Returns:
      the value of the discipline record component
    • category

      public String category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • performance

      public Real performance()
      Returns the value of the performance record component.
      Returns:
      the value of the performance record component
    • unit

      public String unit()
      Returns the value of the unit record component.
      Returns:
      the value of the unit record component
    • athlete

      public String athlete()
      Returns the value of the athlete record component.
      Returns:
      the value of the athlete record component
    • nationality

      public String nationality()
      Returns the value of the nationality record component.
      Returns:
      the value of the nationality record component
    • date

      public TimeCoordinate date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • venue

      public String venue()
      Returns the value of the venue record component.
      Returns:
      the value of the venue record component
    • isHigherBetter

      public boolean isHigherBetter()
      Returns the value of the isHigherBetter record component.
      Returns:
      the value of the isHigherBetter record component