ExerciseLapSummary
public final class ExerciseLapSummary
Describes a completed exercise lap.
Summary
Public constructors |
|---|
ExerciseLapSummary( |
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 |
final @NonNull Instant |
Returns the time at which the lap has started. |
@NonNull String |
toString() |
Public constructors
ExerciseLapSummary
public ExerciseLapSummary(
int lapCount,
@NonNull Instant startTime,
@NonNull Instant endTime,
@NonNull Duration activeDuration,
@NonNull DataPointContainer lapMetrics
)
Public methods
getActiveDuration
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
public final @NonNull Instant getEndTime()
Returns the time at which the lap has ended.
getLapCount
public final int getLapCount()
Returns the lap count of this summary. Lap count starts at 1 for the first lap.
getLapMetrics
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
public final @NonNull Instant getStartTime()
Returns the time at which the lap has started.