AI-generated Key Takeaways
-
Goal.FrequencyObjective is a class that uses the number of activity segments to determine if a goal is met.
-
This class implements the Parcelable interface.
-
It includes a constructor that takes an integer frequency as an argument.
-
A key method is
getFrequency, which returns the goal's objective frequency.
A frequency objective, which uses the number of activity segments to determine whether the goal is met. For example, 3 times (per week).
Inherited Constant Summary
Field Summary
| public static final Creator<Goal.FrequencyObjective> | CREATOR |
Public Constructor Summary
|
FrequencyObjective(int frequency)
|
Public Method Summary
| boolean | |
| int |
getFrequency()
Returns the objective frequency of the goal.
|
| int |
hashCode()
|
| String |
toString()
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<Goal.FrequencyObjective> CREATOR
Public Constructors
public FrequencyObjective (int frequency)
Public Methods
public boolean equals (Object other)
public int getFrequency ()
Returns the objective frequency of the goal. For example, returns 2 for a goal to "do yoga 2x a week".