Added in API level 34
HeartRateRecord.HeartRateSample
public
static
final
class
HeartRateRecord.HeartRateSample
extends Object
| java.lang.Object | |
| ↳ | android.health.connect.datatypes.HeartRateRecord.HeartRateSample |
A class to represent heart rate samples
Summary
Public constructors | |
|---|---|
HeartRateSample(long beatsPerMinute, Instant time)
Heart rate sample for entries of |
|
Public methods | |
|---|---|
boolean
|
equals(Object object)
Indicates whether some other object is "equal to" this one. |
long
|
getBeatsPerMinute()
|
Instant
|
getTime()
|
int
|
hashCode()
Returns a hash code value for the object. |
Inherited methods | |
|---|---|
Public constructors
HeartRateSample
Added in API level 34
public HeartRateSample (long beatsPerMinute,
Instant time)Heart rate sample for entries of HeartRateRecord
| Parameters | |
|---|---|
beatsPerMinute |
long: Heart beats 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 |
getBeatsPerMinute
Added in API level 34
public long getBeatsPerMinute ()
| Returns | |
|---|---|
long |
beats per minute for this sample |
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. |