Record Class ExerciseSessionDao.SessionSummary
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.dao.ExerciseSessionDao.SessionSummary
- Enclosing class:
ExerciseSessionDao
public static record ExerciseSessionDao.SessionSummary(int id, int userId, int exerciseId, String status, LocalDateTime startedAt, LocalDateTime completedAt, int activeSeconds, String feedback)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSummary(int id, int userId, int exerciseId, String status, LocalDateTime startedAt, LocalDateTime completedAt, int activeSeconds, String feedback) Creates an instance of aSessionSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveSecondsrecord component.booleanReturns the value of thecompletedAtrecord component.day()final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexerciseIdrecord component.feedback()Returns the value of thefeedbackrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.intuserId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
SessionSummary
public SessionSummary(int id, int userId, int exerciseId, String status, LocalDateTime startedAt, LocalDateTime completedAt, int activeSeconds, String feedback) Creates an instance of aSessionSummaryrecord class.- Parameters:
id- the value for theidrecord componentuserId- the value for theuserIdrecord componentexerciseId- the value for theexerciseIdrecord componentstatus- the value for thestatusrecord componentstartedAt- the value for thestartedAtrecord componentcompletedAt- the value for thecompletedAtrecord componentactiveSeconds- the value for theactiveSecondsrecord componentfeedback- the value for thefeedbackrecord component
-
-
Method Details
-
completed
public boolean completed() -
day
-
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. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
userId
public int userId()Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
exerciseId
public int exerciseId()Returns the value of theexerciseIdrecord component.- Returns:
- the value of the
exerciseIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
activeSeconds
public int activeSeconds()Returns the value of theactiveSecondsrecord component.- Returns:
- the value of the
activeSecondsrecord component
-
feedback
Returns the value of thefeedbackrecord component.- Returns:
- the value of the
feedbackrecord component
-