BodyFatRecord
public final class BodyFatRecord implements Record
Captures the body fat percentage of a user. Each record represents a person's total body fat as a percentage of their total body mass.
Summary
Public constructors |
|---|
BodyFatRecord( |
Public methods |
|
|---|---|
boolean |
|
@NonNull Metadata |
Set of common metadata associated with the written record. |
final @NonNull Percentage |
Percentage. |
@NonNull Instant |
getTime()Time the record happened. |
ZoneOffset |
User experienced zone offset at |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
BodyFatRecord
public BodyFatRecord(
@NonNull Instant time,
ZoneOffset zoneOffset,
@NonNull Percentage percentage,
@NonNull Metadata metadata
)
Public methods
getMetadata
public @NonNull Metadata getMetadata()
Set of common metadata associated with the written record.
getPercentage
public final @NonNull Percentage getPercentage()
Percentage. Required field. Valid range: 0-100.
getZoneOffset
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.