Record Class PerformanceReport
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.service.performance.PerformanceReport
public record PerformanceReport(int userId, Integer exerciseId, int windowDays, int sessionsTotal, int sessionsCompleted, int completionRatePercent, int avgActiveSeconds, double trendDeltaPercent, PerformanceReport.Status status, boolean fatigueFlag, boolean painFlag, List<PerformanceReport.Recommendation> recommendations, PerformanceReport.NextSessionPlan nextSessionPlan, List<PerformanceReport.DailyPoint> dailySeries)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionPerformanceReport(int userId, Integer exerciseId, int windowDays, int sessionsTotal, int sessionsCompleted, int completionRatePercent, int avgActiveSeconds, double trendDeltaPercent, PerformanceReport.Status status, boolean fatigueFlag, boolean painFlag, List<PerformanceReport.Recommendation> recommendations, PerformanceReport.NextSessionPlan nextSessionPlan, List<PerformanceReport.DailyPoint> dailySeries) Creates an instance of aPerformanceReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theavgActiveSecondsrecord component.intReturns the value of thecompletionRatePercentrecord component.Returns the value of thedailySeriesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexerciseIdrecord component.booleanReturns the value of thefatigueFlagrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenextSessionPlanrecord component.booleanpainFlag()Returns the value of thepainFlagrecord component.Returns the value of therecommendationsrecord component.intReturns the value of thesessionsCompletedrecord component.intReturns the value of thesessionsTotalrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetrendDeltaPercentrecord component.intuserId()Returns the value of theuserIdrecord component.intReturns the value of thewindowDaysrecord component.
-
Constructor Details
-
PerformanceReport
public PerformanceReport(int userId, Integer exerciseId, int windowDays, int sessionsTotal, int sessionsCompleted, int completionRatePercent, int avgActiveSeconds, double trendDeltaPercent, PerformanceReport.Status status, boolean fatigueFlag, boolean painFlag, List<PerformanceReport.Recommendation> recommendations, PerformanceReport.NextSessionPlan nextSessionPlan, List<PerformanceReport.DailyPoint> dailySeries) Creates an instance of aPerformanceReportrecord class.- Parameters:
userId- the value for theuserIdrecord componentexerciseId- the value for theexerciseIdrecord componentwindowDays- the value for thewindowDaysrecord componentsessionsTotal- the value for thesessionsTotalrecord componentsessionsCompleted- the value for thesessionsCompletedrecord componentcompletionRatePercent- the value for thecompletionRatePercentrecord componentavgActiveSeconds- the value for theavgActiveSecondsrecord componenttrendDeltaPercent- the value for thetrendDeltaPercentrecord componentstatus- the value for thestatusrecord componentfatigueFlag- the value for thefatigueFlagrecord componentpainFlag- the value for thepainFlagrecord componentrecommendations- the value for therecommendationsrecord componentnextSessionPlan- the value for thenextSessionPlanrecord componentdailySeries- the value for thedailySeriesrecord 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. -
userId
public int userId()Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
exerciseId
Returns the value of theexerciseIdrecord component.- Returns:
- the value of the
exerciseIdrecord component
-
windowDays
public int windowDays()Returns the value of thewindowDaysrecord component.- Returns:
- the value of the
windowDaysrecord component
-
sessionsTotal
public int sessionsTotal()Returns the value of thesessionsTotalrecord component.- Returns:
- the value of the
sessionsTotalrecord component
-
sessionsCompleted
public int sessionsCompleted()Returns the value of thesessionsCompletedrecord component.- Returns:
- the value of the
sessionsCompletedrecord component
-
completionRatePercent
public int completionRatePercent()Returns the value of thecompletionRatePercentrecord component.- Returns:
- the value of the
completionRatePercentrecord component
-
avgActiveSeconds
public int avgActiveSeconds()Returns the value of theavgActiveSecondsrecord component.- Returns:
- the value of the
avgActiveSecondsrecord component
-
trendDeltaPercent
public double trendDeltaPercent()Returns the value of thetrendDeltaPercentrecord component.- Returns:
- the value of the
trendDeltaPercentrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
fatigueFlag
public boolean fatigueFlag()Returns the value of thefatigueFlagrecord component.- Returns:
- the value of the
fatigueFlagrecord component
-
painFlag
public boolean painFlag()Returns the value of thepainFlagrecord component.- Returns:
- the value of the
painFlagrecord component
-
recommendations
Returns the value of therecommendationsrecord component.- Returns:
- the value of the
recommendationsrecord component
-
nextSessionPlan
Returns the value of thenextSessionPlanrecord component.- Returns:
- the value of the
nextSessionPlanrecord component
-
dailySeries
Returns the value of thedailySeriesrecord component.- Returns:
- the value of the
dailySeriesrecord component
-