public final class ExerciseLap


Captures the time of a lap within an exercise session.

Each lap contains the start and end time and optional [Length] of the lap (e.g. pool length while swimming or a track lap while running). There may or may not be direct correlation with [ExerciseSegment] start and end times, e.g. [ExerciseSessionRecord] of type running without any segments can be divided into laps of different lengths.

Summary

Public constructors

ExerciseLap(
    @NonNull Instant startTime,
    @NonNull Instant endTime,
    Length length
)

Public methods

boolean
equals(Object other)
final @NonNull Instant
final Length

Lap length in Length unit.

final @NonNull Instant
int

Public constructors

ExerciseLap

Added in 1.1.0-alpha07
public ExerciseLap(
    @NonNull Instant startTime,
    @NonNull Instant endTime,
    Length length
)

Public methods

equals

public boolean equals(Object other)

getEndTime

Added in 1.1.0-alpha07
public final @NonNull Instant getEndTime()

getLength

Added in 1.1.0-alpha07
public final Length getLength()

Lap length in Length unit. Optional field. Valid range: 0-1000000 meters.

getStartTime

Added in 1.1.0-alpha07
public final @NonNull Instant getStartTime()

hashCode

public int hashCode()