CyclingPedalingCadenceRecord.CyclingPedalingCadenceRecordSample
public
static
final
class
CyclingPedalingCadenceRecord.CyclingPedalingCadenceRecordSample
extends Object
| java.lang.Object | |
| ↳ | android.health.connect.datatypes.CyclingPedalingCadenceRecord.CyclingPedalingCadenceRecordSample |
Represents a single measurement of the cycling pedaling cadence.
Summary
Public constructors | |
|---|---|
CyclingPedalingCadenceRecordSample(double revolutionsPerMinute, Instant time)
CyclingPedalingCadenceRecord sample for entries of |
|
Public methods | |
|---|---|
boolean
|
equals(Object object)
Indicates whether some other object is "equal to" this one. |
double
|
getRevolutionsPerMinute()
|
Instant
|
getTime()
|
int
|
hashCode()
Returns a hash code value for the object. |
Inherited methods | |
|---|---|
Public constructors
CyclingPedalingCadenceRecordSample
public CyclingPedalingCadenceRecordSample (double revolutionsPerMinute,
Instant time)CyclingPedalingCadenceRecord sample for entries of CyclingPedalingCadenceRecord
| Parameters | |
|---|---|
revolutionsPerMinute |
double: Cycling revolutions per minute. |
time |
Instant: The point in time when the measurement was taken.
This value cannot be null. |
Public methods
equals
public boolean equals (Object object)
Indicates whether some other object is "equal to" this one.
| Parameters | |
|---|---|
object |
Object: the reference object with which to compare.
This value may be null. |
| Returns | |
|---|---|
boolean |
true if this object is the same as the obj |
getRevolutionsPerMinute
public double getRevolutionsPerMinute ()
| Returns | |
|---|---|
double |
RevolutionsPerMinute for this sample |
getTime
public Instant getTime ()
| Returns | |
|---|---|
Instant |
time at which this sample was recorded.
This value cannot be null. |
hashCode
public int hashCode ()
Returns a hash code value for the object.
| Returns | |
|---|---|
int |
a hash code value for this object. |