Added in API level 34
StepsCadenceRecord.StepsCadenceRecordSample
public
static
final
class
StepsCadenceRecord.StepsCadenceRecordSample
extends Object
java.lang.Object | |
↳ | android.health.connect.datatypes.StepsCadenceRecord.StepsCadenceRecordSample |
Represents a single measurement of the steps cadence.
Summary
Public constructors | |
---|---|
StepsCadenceRecordSample(double rate, Instant time)
StepsCadenceRecord sample for entries of |
Public methods | |
---|---|
boolean
|
equals(Object object)
Indicates whether some other object is "equal to" this one. |
double
|
getRate()
|
Instant
|
getTime()
|
int
|
hashCode()
Returns a hash code value for the object. |
Inherited methods | |
---|---|
Public constructors
StepsCadenceRecordSample
Added in API level 34
public StepsCadenceRecordSample (double rate, Instant time)
StepsCadenceRecord sample for entries of StepsCadenceRecord
Parameters | |
---|---|
rate |
double : Rate in steps per minute. |
time |
Instant : The point in time when the measurement was taken.
This value cannot be null . |
Public methods
equals
Added in API level 34
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 |
getTime
Added in API level 34
public Instant getTime ()
Returns | |
---|---|
Instant |
time at which this sample was recorded
This value cannot be null . |
hashCode
Added in API level 34
public int hashCode ()
Returns a hash code value for the object.
Returns | |
---|---|
int |
a hash code value for this object. |