Record Class NutritionPlanner.MealTiming
java.lang.Object
java.lang.Record
org.episteme.social.sports.NutritionPlanner.MealTiming
- All Implemented Interfaces:
Serializable
- Enclosing class:
NutritionPlanner
-
Constructor Summary
ConstructorsConstructorDescriptionMealTiming(int hoursBeforeTraining, String preTrainingMeal, String duringTraining, String postTrainingImmediate, String postTrainingMeal) Creates an instance of aMealTimingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theduringTrainingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thehoursBeforeTrainingrecord component.Returns the value of thepostTrainingImmediaterecord component.Returns the value of thepostTrainingMealrecord component.Returns the value of thepreTrainingMealrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MealTiming
public MealTiming(int hoursBeforeTraining, String preTrainingMeal, String duringTraining, String postTrainingImmediate, String postTrainingMeal) Creates an instance of aMealTimingrecord class.- Parameters:
hoursBeforeTraining- the value for thehoursBeforeTrainingrecord componentpreTrainingMeal- the value for thepreTrainingMealrecord componentduringTraining- the value for theduringTrainingrecord componentpostTrainingImmediate- the value for thepostTrainingImmediaterecord componentpostTrainingMeal- the value for thepostTrainingMealrecord 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. -
hoursBeforeTraining
public int hoursBeforeTraining()Returns the value of thehoursBeforeTrainingrecord component.- Returns:
- the value of the
hoursBeforeTrainingrecord component
-
preTrainingMeal
Returns the value of thepreTrainingMealrecord component.- Returns:
- the value of the
preTrainingMealrecord component
-
duringTraining
Returns the value of theduringTrainingrecord component.- Returns:
- the value of the
duringTrainingrecord component
-
postTrainingImmediate
Returns the value of thepostTrainingImmediaterecord component.- Returns:
- the value of the
postTrainingImmediaterecord component
-
postTrainingMeal
Returns the value of thepostTrainingMealrecord component.- Returns:
- the value of the
postTrainingMealrecord component
-