Goal.DurationObjective

public static classGoal.DurationObjectiveextendsObject
implementsParcelable

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 finalCreator<Goal.DurationObjective> CREATOR

Public Constructor Summary

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
String
void
writeToParcel(Parceldest, int flags)

Inherited Method Summary

Fields

public static finalCreator<Goal.DurationObjective> CREATOR

Public Constructors

publicDurationObjective(long duration, TimeUnit timeUnit)

Public Methods

public booleanequals(Objectother)

public longgetDuration(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 inthashCode()

publicStringtoString()

public voidwriteToParcel(Parceldest, int flags)