Record
public
abstract
class
Record
extends Object
| java.lang.Object | |
| ↳ | android.health.connect.datatypes.Record |
A base class for all record classes
Summary
Constants | |
|---|---|
int |
RECORD_TEMPORAL_TYPE_INSTANT
The record represents an instantaneous event. |
int |
RECORD_TEMPORAL_TYPE_INTERVAL
The record represents an event over an interval. |
int |
RECORD_TEMPORAL_TYPE_LOCAL_DATE
The record represents an event that occurred on a specific date. |
Public methods | |
|---|---|
boolean
|
equals(Object object)
Indicates whether some other object is "equal to" this one. |
Metadata
|
getMetadata()
|
int
|
hashCode()
Returns a hash code value for the object. |
Inherited methods | |
|---|---|
Constants
RECORD_TEMPORAL_TYPE_INSTANT
public static final int RECORD_TEMPORAL_TYPE_INSTANT
The record represents an instantaneous event.
Constant Value: 0 (0x00000000)
RECORD_TEMPORAL_TYPE_INTERVAL
public static final int RECORD_TEMPORAL_TYPE_INTERVAL
The record represents an event over an interval.
Constant Value: 1 (0x00000001)
RECORD_TEMPORAL_TYPE_LOCAL_DATE
public static final int RECORD_TEMPORAL_TYPE_LOCAL_DATE
The record represents an event that occurred on a specific date.
Constant Value: 2 (0x00000002)
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 |
getMetadata
public Metadata getMetadata ()
| Returns | |
|---|---|
Metadata |
Metadata for this record.
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. |