Goal.DurationObjective

public static class Goal.DurationObjective extends Object
implements Parcelable

A duration objective, which uses duration time of activities to determine whether the goal is met. For example, 30 minutes or 2 hours.

Inherited Constant Summary

Field Summary

public static final Creator<Goal.DurationObjective> CREATOR

Public Constructor Summary

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 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. For example 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)