Record Class ContextAwarePlanner.DailyPlan
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.service.ContextAwarePlanner.DailyPlan
- Enclosing class:
ContextAwarePlanner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactivityMinutesrecord component.Returns the value of theactivityTitlerecord component.Returns the value of thecontextLinerecord 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 themeditationMinutesrecord component.Returns the value of themeditationTitlerecord component.final StringtoString()Returns a string representation of this record class.why()Returns the value of thewhyrecord component.Returns the value of theyoutubeQueryrecord component.
-
Constructor Details
-
DailyPlan
public DailyPlan(String contextLine, String activityTitle, int activityMinutes, String meditationTitle, int meditationMinutes, String youtubeQuery, String why) Creates an instance of aDailyPlanrecord class.- Parameters:
contextLine- the value for thecontextLinerecord componentactivityTitle- the value for theactivityTitlerecord componentactivityMinutes- the value for theactivityMinutesrecord componentmeditationTitle- the value for themeditationTitlerecord componentmeditationMinutes- the value for themeditationMinutesrecord componentyoutubeQuery- the value for theyoutubeQueryrecord componentwhy- the value for thewhyrecord 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. -
contextLine
Returns the value of thecontextLinerecord component.- Returns:
- the value of the
contextLinerecord component
-
activityTitle
Returns the value of theactivityTitlerecord component.- Returns:
- the value of the
activityTitlerecord component
-
activityMinutes
public int activityMinutes()Returns the value of theactivityMinutesrecord component.- Returns:
- the value of the
activityMinutesrecord component
-
meditationTitle
Returns the value of themeditationTitlerecord component.- Returns:
- the value of the
meditationTitlerecord component
-
meditationMinutes
public int meditationMinutes()Returns the value of themeditationMinutesrecord component.- Returns:
- the value of the
meditationMinutesrecord component
-
youtubeQuery
Returns the value of theyoutubeQueryrecord component.- Returns:
- the value of the
youtubeQueryrecord component
-
why
Returns the value of thewhyrecord component.- Returns:
- the value of the
whyrecord component
-