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
  • 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 a PerformanceReport record class.
      Parameters:
      userId - the value for the userId record component
      exerciseId - the value for the exerciseId record component
      windowDays - the value for the windowDays record component
      sessionsTotal - the value for the sessionsTotal record component
      sessionsCompleted - the value for the sessionsCompleted record component
      completionRatePercent - the value for the completionRatePercent record component
      avgActiveSeconds - the value for the avgActiveSeconds record component
      trendDeltaPercent - the value for the trendDeltaPercent record component
      status - the value for the status record component
      fatigueFlag - the value for the fatigueFlag record component
      painFlag - the value for the painFlag record component
      recommendations - the value for the recommendations record component
      nextSessionPlan - the value for the nextSessionPlan record component
      dailySeries - the value for the dailySeries record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • userId

      public int userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component
    • exerciseId

      public Integer exerciseId()
      Returns the value of the exerciseId record component.
      Returns:
      the value of the exerciseId record component
    • windowDays

      public int windowDays()
      Returns the value of the windowDays record component.
      Returns:
      the value of the windowDays record component
    • sessionsTotal

      public int sessionsTotal()
      Returns the value of the sessionsTotal record component.
      Returns:
      the value of the sessionsTotal record component
    • sessionsCompleted

      public int sessionsCompleted()
      Returns the value of the sessionsCompleted record component.
      Returns:
      the value of the sessionsCompleted record component
    • completionRatePercent

      public int completionRatePercent()
      Returns the value of the completionRatePercent record component.
      Returns:
      the value of the completionRatePercent record component
    • avgActiveSeconds

      public int avgActiveSeconds()
      Returns the value of the avgActiveSeconds record component.
      Returns:
      the value of the avgActiveSeconds record component
    • trendDeltaPercent

      public double trendDeltaPercent()
      Returns the value of the trendDeltaPercent record component.
      Returns:
      the value of the trendDeltaPercent record component
    • status

      public PerformanceReport.Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • fatigueFlag

      public boolean fatigueFlag()
      Returns the value of the fatigueFlag record component.
      Returns:
      the value of the fatigueFlag record component
    • painFlag

      public boolean painFlag()
      Returns the value of the painFlag record component.
      Returns:
      the value of the painFlag record component
    • recommendations

      public List<PerformanceReport.Recommendation> recommendations()
      Returns the value of the recommendations record component.
      Returns:
      the value of the recommendations record component
    • nextSessionPlan

      public PerformanceReport.NextSessionPlan nextSessionPlan()
      Returns the value of the nextSessionPlan record component.
      Returns:
      the value of the nextSessionPlan record component
    • dailySeries

      public List<PerformanceReport.DailyPoint> dailySeries()
      Returns the value of the dailySeries record component.
      Returns:
      the value of the dailySeries record component