ExerciseLapSummary


public final class ExerciseLapSummary


Describes a completed exercise lap.

Summary

Public constructors

ExerciseLapSummary(
    int lapCount,
    @NonNull Instant startTime,
    @NonNull Instant endTime,
    @NonNull Duration activeDuration,
    @NonNull DataPointContainer lapMetrics
)

Public methods

final @NonNull Duration

Returns the total elapsed time for which the exercise has been active during this lap, i.e. started but not paused.

final @NonNull Instant

Returns the time at which the lap has ended.

final int

Returns the lap count of this summary.

final @NonNull DataPointContainer

Returns the DataPoints for each metric keyed by DataType tracked between startTime and endTime i.e. during the duration of this lap.

final @NonNull Instant

Returns the time at which the lap has started.

@NonNull String

Public constructors

ExerciseLapSummary

Added in 1.0.0
public ExerciseLapSummary(
    int lapCount,
    @NonNull Instant startTime,
    @NonNull Instant endTime,
    @NonNull Duration activeDuration,
    @NonNull DataPointContainer lapMetrics
)

Public methods

getActiveDuration

Added in 1.0.0
public final @NonNull Duration getActiveDuration()

Returns the total elapsed time for which the exercise has been active during this lap, i.e. started but not paused.

getEndTime

Added in 1.0.0
public final @NonNull Instant getEndTime()

Returns the time at which the lap has ended.

getLapCount

Added in 1.0.0
public final int getLapCount()

Returns the lap count of this summary. Lap count starts at 1 for the first lap.

getLapMetrics

Added in 1.0.0
public final @NonNull DataPointContainer getLapMetrics()

Returns the DataPoints for each metric keyed by DataType tracked between startTime and endTime i.e. during the duration of this lap. This will only contain AggregateDataTypes calculated over the duration of the lap.

getStartTime

Added in 1.0.0
public final @NonNull Instant getStartTime()

Returns the time at which the lap has started.

toString

public @NonNull String toString()