Record Class PerformanceReport.NextSessionPlan
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.service.performance.PerformanceReport.NextSessionPlan
- Enclosing class:
PerformanceReport
-
Constructor Summary
ConstructorsConstructorDescriptionNextSessionPlan(String objective, int targetActiveSeconds, Integer targetReps, Integer targetRpe) Creates an instance of aNextSessionPlanrecord 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.Returns the value of theobjectiverecord component.intReturns the value of thetargetActiveSecondsrecord component.Returns the value of thetargetRepsrecord component.Returns the value of thetargetRperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NextSessionPlan
public NextSessionPlan(String objective, int targetActiveSeconds, Integer targetReps, Integer targetRpe) Creates an instance of aNextSessionPlanrecord class.- Parameters:
objective- the value for theobjectiverecord componenttargetActiveSeconds- the value for thetargetActiveSecondsrecord componenttargetReps- the value for thetargetRepsrecord componenttargetRpe- the value for thetargetRperecord 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. -
objective
Returns the value of theobjectiverecord component.- Returns:
- the value of the
objectiverecord component
-
targetActiveSeconds
public int targetActiveSeconds()Returns the value of thetargetActiveSecondsrecord component.- Returns:
- the value of the
targetActiveSecondsrecord component
-
targetReps
Returns the value of thetargetRepsrecord component.- Returns:
- the value of the
targetRepsrecord component
-
targetRpe
Returns the value of thetargetRperecord component.- Returns:
- the value of the
targetRperecord component
-