Record Class PerformanceReport.DailyPoint
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.service.performance.PerformanceReport.DailyPoint
- Enclosing class:
PerformanceReport
-
Constructor Summary
ConstructorsConstructorDescriptionDailyPoint(String day, int sessions, int completed, int activeSeconds) Creates an instance of aDailyPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveSecondsrecord component.intReturns the value of thecompletedrecord component.day()Returns the value of thedayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsessions()Returns the value of thesessionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DailyPoint
Creates an instance of aDailyPointrecord class.- Parameters:
day- the value for thedayrecord componentsessions- the value for thesessionsrecord componentcompleted- the value for thecompletedrecord componentactiveSeconds- the value for theactiveSecondsrecord 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. -
day
Returns the value of thedayrecord component.- Returns:
- the value of the
dayrecord component
-
sessions
public int sessions()Returns the value of thesessionsrecord component.- Returns:
- the value of the
sessionsrecord component
-
completed
public int completed()Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
activeSeconds
public int activeSeconds()Returns the value of theactiveSecondsrecord component.- Returns:
- the value of the
activeSecondsrecord component
-