OxygenSaturationRecord

public final class OxygenSaturationRecord implements Record


Captures the amount of oxygen circulating in the blood, measured as a percentage of oxygen-saturated hemoglobin. Each record represents a single blood oxygen saturation reading at the time of measurement.

Summary

Public constructors

OxygenSaturationRecord(
    @NonNull Instant time,
    ZoneOffset zoneOffset,
    @NonNull Percentage percentage,
    @NonNull Metadata metadata
)

Public methods

boolean
equals(Object other)
@NonNull Metadata

Set of common metadata associated with the written record.

final @NonNull Percentage

Percentage.

@NonNull Instant

Time the record happened.

ZoneOffset

User experienced zone offset at time, or null if unknown.

int

Public constructors

OxygenSaturationRecord

Added in 1.1.0-alpha07
public OxygenSaturationRecord(
    @NonNull Instant time,
    ZoneOffset zoneOffset,
    @NonNull Percentage percentage,
    @NonNull Metadata metadata
)

Public methods

equals

public boolean equals(Object other)

getMetadata

Added in 1.1.0-alpha07
public @NonNull Metadata getMetadata()

Set of common metadata associated with the written record.

getPercentage

Added in 1.1.0-alpha07
public final @NonNull Percentage getPercentage()

Percentage. Required field. Valid range: 0-100.

getTime

Added in 1.1.0-alpha07
public @NonNull Instant getTime()

Time the record happened.

getZoneOffset

Added in 1.1.0-alpha07
public ZoneOffset getZoneOffset()

User experienced zone offset at time, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.

hashCode

public int hashCode()