Record
abstract class Record
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.Record |
A base class for all record classes
Summary
| Constants | |
|---|---|
| static Int |
The record represents an instantaneous event. |
| static Int |
The record represents an event over an interval. |
| static Int |
The record represents an event that occurred on a specific date. |
| Public methods | |
|---|---|
| open Boolean |
Indicates whether some other object is "equal to" this one. |
| open Metadata | |
| open Int |
hashCode()Returns a hash code value for the object. |
Constants
RECORD_TEMPORAL_TYPE_INSTANT
static val RECORD_TEMPORAL_TYPE_INSTANT: Int
The record represents an instantaneous event.
Value: 0RECORD_TEMPORAL_TYPE_INTERVAL
static val RECORD_TEMPORAL_TYPE_INTERVAL: Int
The record represents an event over an interval.
Value: 1RECORD_TEMPORAL_TYPE_LOCAL_DATE
static val RECORD_TEMPORAL_TYPE_LOCAL_DATE: Int
The record represents an event that occurred on a specific date.
Value: 2Public methods
equals
open fun equals(other: Any?): Boolean
Indicates whether some other object is "equal to" this one.
| Parameters | |
|---|---|
obj |
the reference object with which to compare. |
object |
the reference object with which to compare. This value may be null. |
| Return | |
|---|---|
Boolean |
true if this object is the same as the obj |
getMetadata
open fun getMetadata(): Metadata
| Return | |
|---|---|
Metadata |
Metadata for this record. This value cannot be null. |
hashCode
open fun hashCode(): Int
Returns a hash code value for the object.
| Return | |
|---|---|
Int |
a hash code value for this object. |