Record Class ContextAwarePlanner.DailyPlan

java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.service.ContextAwarePlanner.DailyPlan
Enclosing class:
ContextAwarePlanner

public static record ContextAwarePlanner.DailyPlan(String contextLine, String activityTitle, int activityMinutes, String meditationTitle, int meditationMinutes, String youtubeQuery, String why) extends Record
Record documentation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DailyPlan(String contextLine, String activityTitle, int activityMinutes, String meditationTitle, int meditationMinutes, String youtubeQuery, String why)
    Creates an instance of a DailyPlan record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the activityMinutes record component.
    Returns the value of the activityTitle record component.
    Returns the value of the contextLine record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the meditationMinutes record component.
    Returns the value of the meditationTitle record component.
    final String
    Returns a string representation of this record class.
    why()
    Returns the value of the why record component.
    Returns the value of the youtubeQuery record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DailyPlan

      public DailyPlan(String contextLine, String activityTitle, int activityMinutes, String meditationTitle, int meditationMinutes, String youtubeQuery, String why)
      Creates an instance of a DailyPlan record class.
      Parameters:
      contextLine - the value for the contextLine record component
      activityTitle - the value for the activityTitle record component
      activityMinutes - the value for the activityMinutes record component
      meditationTitle - the value for the meditationTitle record component
      meditationMinutes - the value for the meditationMinutes record component
      youtubeQuery - the value for the youtubeQuery record component
      why - the value for the why record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contextLine

      public String contextLine()
      Returns the value of the contextLine record component.
      Returns:
      the value of the contextLine record component
    • activityTitle

      public String activityTitle()
      Returns the value of the activityTitle record component.
      Returns:
      the value of the activityTitle record component
    • activityMinutes

      public int activityMinutes()
      Returns the value of the activityMinutes record component.
      Returns:
      the value of the activityMinutes record component
    • meditationTitle

      public String meditationTitle()
      Returns the value of the meditationTitle record component.
      Returns:
      the value of the meditationTitle record component
    • meditationMinutes

      public int meditationMinutes()
      Returns the value of the meditationMinutes record component.
      Returns:
      the value of the meditationMinutes record component
    • youtubeQuery

      public String youtubeQuery()
      Returns the value of the youtubeQuery record component.
      Returns:
      the value of the youtubeQuery record component
    • why

      public String why()
      Returns the value of the why record component.
      Returns:
      the value of the why record component