HeartRateRecord.Sample


public final class HeartRateRecord.Sample


Represents a single measurement of the heart rate.

See also
HeartRateRecord

Summary

Public constructors

Sample(
    @NonNull Instant time,
    @IntRange(from = 1, to = 300) long beatsPerMinute
)

Public methods

boolean
equals(Object other)
final long

Heart beats per minute.

final @NonNull Instant

The point in time when the measurement was taken.

int
@NonNull String

Public constructors

Sample

Added in 1.1.0-alpha10
public Sample(
    @NonNull Instant time,
    @IntRange(from = 1, to = 300) long beatsPerMinute
)
Parameters
@NonNull Instant time

The point in time when the measurement was taken.

@IntRange(from = 1, to = 300) long beatsPerMinute

Heart beats per minute. Validation range: 1-300.

Public methods

equals

public boolean equals(Object other)

getBeatsPerMinute

Added in 1.1.0-alpha10
public final long getBeatsPerMinute()

Heart beats per minute. Validation range: 1-300.

getTime

Added in 1.1.0-alpha10
public final @NonNull Instant getTime()

The point in time when the measurement was taken.

hashCode

public int hashCode()

toString

public @NonNull String toString()