Record Class TrainingPeriodization.Macrocycle
java.lang.Object
java.lang.Record
org.episteme.social.sports.TrainingPeriodization.Macrocycle
- All Implemented Interfaces:
Serializable
- Enclosing class:
TrainingPeriodization
public static record TrainingPeriodization.Macrocycle(String name, int totalWeeks, List<TrainingPeriodization.TrainingWeek> weeks, String targetEvent, int targetEventWeek)
extends Record
implements Serializable
Top-level training cycle (typically 3-12 months).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMacrocycle(String name, int totalWeeks, List<TrainingPeriodization.TrainingWeek> weeks, String targetEvent, int targetEventWeek) Creates an instance of aMacrocyclerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thetargetEventrecord component.intReturns the value of thetargetEventWeekrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalWeeksrecord component.weeks()Returns the value of theweeksrecord component.
-
Constructor Details
-
Macrocycle
public Macrocycle(String name, int totalWeeks, List<TrainingPeriodization.TrainingWeek> weeks, String targetEvent, int targetEventWeek) Creates an instance of aMacrocyclerecord class.- Parameters:
name- the value for thenamerecord componenttotalWeeks- the value for thetotalWeeksrecord componentweeks- the value for theweeksrecord componenttargetEvent- the value for thetargetEventrecord componenttargetEventWeek- the value for thetargetEventWeekrecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
totalWeeks
public int totalWeeks()Returns the value of thetotalWeeksrecord component.- Returns:
- the value of the
totalWeeksrecord component
-
weeks
Returns the value of theweeksrecord component.- Returns:
- the value of the
weeksrecord component
-
targetEvent
Returns the value of thetargetEventrecord component.- Returns:
- the value of the
targetEventrecord component
-
targetEventWeek
public int targetEventWeek()Returns the value of thetargetEventWeekrecord component.- Returns:
- the value of the
targetEventWeekrecord component
-