Record Class TrainingPeriodization.WorkoutSession
java.lang.Object
java.lang.Record
org.episteme.social.sports.TrainingPeriodization.WorkoutSession
- All Implemented Interfaces:
Serializable
- Enclosing class:
TrainingPeriodization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexercisesrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theintensityrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
WorkoutSession
public WorkoutSession(String name, String type, Quantity<Time> duration, double intensity, String description, List<String> exercises) Creates an instance of aWorkoutSessionrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentduration- the value for thedurationrecord componentintensity- the value for theintensityrecord componentdescription- the value for thedescriptionrecord componentexercises- the value for theexercisesrecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
duration
-
intensity
public double intensity()Returns the value of theintensityrecord component.- Returns:
- the value of the
intensityrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
exercises
-