Added in API level 34

IntervalRecord

public abstract class IntervalRecord
extends Record

java.lang.Object
   ↳ android.health.connect.datatypes.Record
     ↳ android.health.connect.datatypes.IntervalRecord


A record that contains a measurement with a time interval.

Summary

Public methods

boolean equals(Object object)

Indicates whether some other object is "equal to" this one.

Instant getEndTime()
ZoneOffset getEndZoneOffset()
Instant getStartTime()
ZoneOffset getStartZoneOffset()
int hashCode()

Returns a hash code value for the object.

Inherited methods

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

getEndTime

Added in API level 34
public Instant getEndTime ()

Returns
Instant End time of the activity This value cannot be null.

getEndZoneOffset

Added in API level 34
public ZoneOffset getEndZoneOffset ()

Returns
ZoneOffset End time's zone offset of the activity This value cannot be null.

getStartTime

Added in API level 34
public Instant getStartTime ()

Returns
Instant Start time of the activity This value cannot be null.

getStartZoneOffset

Added in API level 34
public ZoneOffset getStartZoneOffset ()

Returns
ZoneOffset Start time's zone offset of the activity 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.