A duration objective, which uses duration time of activities to determine whether the goal is met. e.g. 30 minutes, 2 hours.
Inherited Constant Summary
Field Summary
public static final Creator<Goal.DurationObjective> | CREATOR |
Public Constructor Summary
Goal.DurationObjective(long duration, TimeUnit
timeUnit)
|
Public Method Summary
boolean | |
long |
getDuration(TimeUnit
timeUnit)
Returns the objective duration of the goal in the specified time unit.
|
int |
hashCode()
|
String |
toString()
|
void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<Goal.DurationObjective> CREATOR
Public Constructors
public Goal.DurationObjective (long duration, TimeUnit timeUnit)
Public Methods
public boolean equals (Object other)
public long getDuration (TimeUnit timeUnit)
Returns the objective duration of the goal in the specified time unit. e.g. Returns 30 minutes for a goal to "walk 30 minutes a day".