Goal.DurationObjective

public static class Goal.DurationObjective extends AbstractSafeParcelable

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
equals(Object other)
long
getDuration(TimeUnit timeUnit)
Returns the objective duration of the goal in the specified time unit.
int
String
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".

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)