ExerciseCompletionGoal.DistanceAndDurationGoal


public final class ExerciseCompletionGoal.DistanceAndDurationGoal extends ExerciseCompletionGoal


An ExerciseCompletionGoal that requires covering a specified distance. Additionally, the step is not complete until the specified time has elapsed. Time remaining after the specified distance has been completed should be spent resting. In the context of swimming, this is sometimes referred to as 'interval training'.

For example, a swimming coach may specify '100m @ 1min40s'. This implies: complete 100m and if you manage it in 1min30s, you will have 10s of rest prior to the next set.

Summary

Public constructors

DistanceAndDurationGoal(
    @NonNull Length distance,
    @NonNull Duration duration
)

Public methods

boolean
equals(Object other)
final @NonNull Length
final @NonNull Duration
int
@NonNull String

Public constructors

DistanceAndDurationGoal

Added in 1.1.0-alpha10
public DistanceAndDurationGoal(
    @NonNull Length distance,
    @NonNull Duration duration
)

Public methods

equals

public boolean equals(Object other)

getDistance

Added in 1.1.0-alpha10
public final @NonNull Length getDistance()

getDuration

Added in 1.1.0-alpha10
public final @NonNull Duration getDuration()

hashCode

public int hashCode()

toString

public @NonNull String toString()