StepsCadenceRecord.Sample


public final class StepsCadenceRecord.Sample


Represents a single measurement of the steps cadence.

Summary

Public constructors

Sample(
    @NonNull Instant time,
    @FloatRange(from = 0.0, to = 10000.0) double rate
)

Public methods

boolean
equals(Object other)
final double

Rate in steps 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,
    @FloatRange(from = 0.0, to = 10000.0) double rate
)
Parameters
@NonNull Instant time

The point in time when the measurement was taken.

@FloatRange(from = 0.0, to = 10000.0) double rate

Rate in steps per minute. Valid range: 0-10000.

Public methods

equals

public boolean equals(Object other)

getRate

Added in 1.1.0-alpha10
public final double getRate()

Rate in steps per minute. Valid range: 0-10000.

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()