PowerRecord.Sample

public final class PowerRecord.Sample


Represents a single measurement of power. For example, using a power meter when exercising on a stationary bike.

See also
PowerRecord

Summary

Public constructors

Sample(@NonNull Instant time, @NonNull Power power)

Public methods

boolean
equals(Object other)
final @NonNull Power

Power generated, in Power unit.

final @NonNull Instant

The point in time when the measurement was taken.

int

Public constructors

Sample

Added in 1.1.0-alpha07
public Sample(@NonNull Instant time, @NonNull Power power)
Parameters
@NonNull Instant time

The point in time when the measurement was taken.

@NonNull Power power

Power generated, in Power unit. Valid range: 0-100000 Watts.

Public methods

equals

public boolean equals(Object other)

getPower

Added in 1.1.0-alpha07
public final @NonNull Power getPower()

Power generated, in Power unit. Valid range: 0-100000 Watts.

getTime

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

The point in time when the measurement was taken.

hashCode

public int hashCode()