Record Class TrainingPeriodization.TrainingWeek
java.lang.Object
java.lang.Record
org.episteme.social.sports.TrainingPeriodization.TrainingWeek
- All Implemented Interfaces:
Serializable
- Enclosing class:
TrainingPeriodization
public static record TrainingPeriodization.TrainingWeek(int weekNumber, TrainingPeriodization.MesoPhase phase, TrainingPeriodization.TrainingLoad load, Quantity<Time> volume, double intensityAvg, String focus, List<String> keyWorkouts)
extends Record
implements Serializable
Represents a specific week's training goals and metrics.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTrainingWeek(int weekNumber, TrainingPeriodization.MesoPhase phase, TrainingPeriodization.TrainingLoad load, Quantity<Time> volume, double intensityAvg, String focus, List<String> keyWorkouts) Creates an instance of aTrainingWeekrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.focus()Returns the value of thefocusrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theintensityAvgrecord component.Returns the value of thekeyWorkoutsrecord component.load()Returns the value of theloadrecord component.phase()Returns the value of thephaserecord component.final StringtoString()Returns a string representation of this record class.volume()Returns the value of thevolumerecord component.intReturns the value of theweekNumberrecord component.
-
Constructor Details
-
TrainingWeek
public TrainingWeek(int weekNumber, TrainingPeriodization.MesoPhase phase, TrainingPeriodization.TrainingLoad load, Quantity<Time> volume, double intensityAvg, String focus, List<String> keyWorkouts) Creates an instance of aTrainingWeekrecord class.- Parameters:
weekNumber- the value for theweekNumberrecord componentphase- the value for thephaserecord componentload- the value for theloadrecord componentvolume- the value for thevolumerecord componentintensityAvg- the value for theintensityAvgrecord componentfocus- the value for thefocusrecord componentkeyWorkouts- the value for thekeyWorkoutsrecord 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. -
weekNumber
public int weekNumber()Returns the value of theweekNumberrecord component.- Returns:
- the value of the
weekNumberrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
load
Returns the value of theloadrecord component.- Returns:
- the value of the
loadrecord component
-
volume
-
intensityAvg
public double intensityAvg()Returns the value of theintensityAvgrecord component.- Returns:
- the value of the
intensityAvgrecord component
-
focus
Returns the value of thefocusrecord component.- Returns:
- the value of the
focusrecord component
-
keyWorkouts
-