Record Class ContextAwarePlanner.DailyContext
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.service.ContextAwarePlanner.DailyContext
- Enclosing class:
ContextAwarePlanner
public static record ContextAwarePlanner.DailyContext(boolean raining, boolean eveningOrNight, int fatigueScore, double temperatureC, double windKph)
extends Record
Record documentation.
-
Constructor Summary
ConstructorsConstructorDescriptionDailyContext(boolean raining, boolean eveningOrNight, int fatigueScore, double temperatureC, double windKph) Creates an instance of aDailyContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theeveningOrNightrecord component.intReturns the value of thefatigueScorerecord component.final inthashCode()Returns a hash code value for this object.booleanraining()Returns the value of therainingrecord component.doubleReturns the value of thetemperatureCrecord component.final StringtoString()Returns a string representation of this record class.doublewindKph()Returns the value of thewindKphrecord component.
-
Constructor Details
-
DailyContext
public DailyContext(boolean raining, boolean eveningOrNight, int fatigueScore, double temperatureC, double windKph) Creates an instance of aDailyContextrecord class.- Parameters:
raining- the value for therainingrecord componenteveningOrNight- the value for theeveningOrNightrecord componentfatigueScore- the value for thefatigueScorerecord componenttemperatureC- the value for thetemperatureCrecord componentwindKph- the value for thewindKphrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
raining
public boolean raining()Returns the value of therainingrecord component.- Returns:
- the value of the
rainingrecord component
-
eveningOrNight
public boolean eveningOrNight()Returns the value of theeveningOrNightrecord component.- Returns:
- the value of the
eveningOrNightrecord component
-
fatigueScore
public int fatigueScore()Returns the value of thefatigueScorerecord component.- Returns:
- the value of the
fatigueScorerecord component
-
temperatureC
public double temperatureC()Returns the value of thetemperatureCrecord component.- Returns:
- the value of the
temperatureCrecord component
-
windKph
public double windKph()Returns the value of thewindKphrecord component.- Returns:
- the value of the
windKphrecord component
-