Record Class InjuryPredictor.AthleteProfile
java.lang.Object
java.lang.Record
org.episteme.social.sports.InjuryPredictor.AthleteProfile
- All Implemented Interfaces:
Serializable
- Enclosing class:
InjuryPredictor
public static record InjuryPredictor.AthleteProfile(int age, double bodyMass, double previousInjuries, double sleepQuality, double nutritionScore, double muscleBalance, String sport)
extends Record
implements Serializable
Physiological and historical profile of an athlete.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAthleteProfile(int age, double bodyMass, double previousInjuries, double sleepQuality, double nutritionScore, double muscleBalance, String sport) Creates an instance of aAthleteProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintage()Returns the value of theagerecord component.doublebodyMass()Returns the value of thebodyMassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themuscleBalancerecord component.doubleReturns the value of thenutritionScorerecord component.doubleReturns the value of thepreviousInjuriesrecord component.doubleReturns the value of thesleepQualityrecord component.sport()Returns the value of thesportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AthleteProfile
public AthleteProfile(int age, double bodyMass, double previousInjuries, double sleepQuality, double nutritionScore, double muscleBalance, String sport) Creates an instance of aAthleteProfilerecord class.- Parameters:
age- the value for theagerecord componentbodyMass- the value for thebodyMassrecord componentpreviousInjuries- the value for thepreviousInjuriesrecord componentsleepQuality- the value for thesleepQualityrecord componentnutritionScore- the value for thenutritionScorerecord componentmuscleBalance- the value for themuscleBalancerecord componentsport- the value for thesportrecord 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. -
age
public int age()Returns the value of theagerecord component.- Returns:
- the value of the
agerecord component
-
bodyMass
public double bodyMass()Returns the value of thebodyMassrecord component.- Returns:
- the value of the
bodyMassrecord component
-
previousInjuries
public double previousInjuries()Returns the value of thepreviousInjuriesrecord component.- Returns:
- the value of the
previousInjuriesrecord component
-
sleepQuality
public double sleepQuality()Returns the value of thesleepQualityrecord component.- Returns:
- the value of the
sleepQualityrecord component
-
nutritionScore
public double nutritionScore()Returns the value of thenutritionScorerecord component.- Returns:
- the value of the
nutritionScorerecord component
-
muscleBalance
public double muscleBalance()Returns the value of themuscleBalancerecord component.- Returns:
- the value of the
muscleBalancerecord component
-
sport
Returns the value of thesportrecord component.- Returns:
- the value of the
sportrecord component
-