public final class Vo2MaxRecord implements Record


Capture user's VO2 max score and optionally the measurement method.

Summary

Constants

static final int
static final int
static final int
static final int
static final int
static final int

Public constructors

Vo2MaxRecord(
    @NonNull Instant time,
    ZoneOffset zoneOffset,
    double vo2MillilitersPerMinuteKilogram,
    int measurementMethod,
    @NonNull Metadata metadata
)

Public methods

boolean
equals(Object other)
final int

VO2 max measurement method.

@NonNull Metadata

Set of common metadata associated with the written record.

@NonNull Instant

Time the record happened.

final double

Maximal aerobic capacity (VO2 max) in milliliters.

ZoneOffset

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

int
@NonNull String

Constants

MEASUREMENT_METHOD_COOPER_TEST

public static final int MEASUREMENT_METHOD_COOPER_TEST = 3

MEASUREMENT_METHOD_HEART_RATE_RATIO

public static final int MEASUREMENT_METHOD_HEART_RATE_RATIO = 2

MEASUREMENT_METHOD_METABOLIC_CART

public static final int MEASUREMENT_METHOD_METABOLIC_CART = 1

MEASUREMENT_METHOD_MULTISTAGE_FITNESS_TEST

public static final int MEASUREMENT_METHOD_MULTISTAGE_FITNESS_TEST = 4

MEASUREMENT_METHOD_OTHER

public static final int MEASUREMENT_METHOD_OTHER = 0

MEASUREMENT_METHOD_ROCKPORT_FITNESS_TEST

public static final int MEASUREMENT_METHOD_ROCKPORT_FITNESS_TEST = 5

Public constructors

Vo2MaxRecord

Added in 1.1.0-alpha10
public Vo2MaxRecord(
    @NonNull Instant time,
    ZoneOffset zoneOffset,
    double vo2MillilitersPerMinuteKilogram,
    int measurementMethod,
    @NonNull Metadata metadata
)

Public methods

equals

public boolean equals(Object other)

getMeasurementMethod

Added in 1.1.0-alpha10
public final int getMeasurementMethod()

VO2 max measurement method. Optional field. Allowed values: MeasurementMethod.

getMetadata

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

Set of common metadata associated with the written record.

getTime

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

Time the record happened.

getVo2MillilitersPerMinuteKilogram

Added in 1.1.0-alpha10
public final double getVo2MillilitersPerMinuteKilogram()

Maximal aerobic capacity (VO2 max) in milliliters. Required field. Valid range: 0-100.

getZoneOffset

Added in 1.1.0-alpha10
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()

toString

public @NonNull String toString()