Record Class HistoricalSports.HistoricalSport
java.lang.Object
java.lang.Record
org.episteme.social.sports.HistoricalSports.HistoricalSport
- All Implemented Interfaces:
Serializable
- Enclosing class:
HistoricalSports
public static record HistoricalSports.HistoricalSport(String name, String modernDescendant, TimeCoordinate originPeriod, String region, List<String> rules, Map<String,String> equipment, String performanceMetric)
extends Record
implements Serializable
Data model for a historical sport.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theequipmentrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themodernDescendantrecord component.name()Returns the value of thenamerecord component.Returns the value of theoriginPeriodrecord component.Returns the value of theperformanceMetricrecord component.region()Returns the value of theregionrecord component.rules()Returns the value of therulesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HistoricalSport
public HistoricalSport(String name, String modernDescendant, TimeCoordinate originPeriod, String region, List<String> rules, Map<String, String> equipment, String performanceMetric) Creates an instance of aHistoricalSportrecord class.- Parameters:
name- the value for thenamerecord componentmodernDescendant- the value for themodernDescendantrecord componentoriginPeriod- the value for theoriginPeriodrecord componentregion- the value for theregionrecord componentrules- the value for therulesrecord componentequipment- the value for theequipmentrecord componentperformanceMetric- the value for theperformanceMetricrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
modernDescendant
Returns the value of themodernDescendantrecord component.- Returns:
- the value of the
modernDescendantrecord component
-
originPeriod
Returns the value of theoriginPeriodrecord component.- Returns:
- the value of the
originPeriodrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
rules
-
equipment
-
performanceMetric
Returns the value of theperformanceMetricrecord component.- Returns:
- the value of the
performanceMetricrecord component
-