-
- All Implemented Interfaces:
-
java.io.Serializable
public class Weight extends Record implements Serializable
Measurements associated with a user's weight and body mass.
-
-
Field Summary
Fields Modifier and Type Field Description private BigDecimal
weight
private BigDecimal
height
private BigDecimal
freeMass
private BigDecimal
fatPercent
private BigDecimal
massWeight
private BigDecimal
bmi
-
Constructor Summary
Constructors Constructor Description Weight()
Measurements associated with a user's weight and body mass. Weight(Peripheral peripheral)
Base class for all objects that represent health records initialized with a BluetoothPeripheral.
-
Method Summary
Modifier and Type Method Description BigDecimal
getWeight()
The value of the measured quantity in kg void
setWeight(BigDecimal weight)
The value of the measured quantity in kg BigDecimal
getHeight()
The value of the measured quantity in cm void
setHeight(BigDecimal height)
The value of the measured quantity in cm BigDecimal
getFreeMass()
The value of the measured quantity in kg void
setFreeMass(BigDecimal freeMass)
The value of the measured quantity in kg BigDecimal
getFatPercent()
The value of the measured quantity void
setFatPercent(BigDecimal fatPercent)
The value of the measured quantity BigDecimal
getMassWeight()
The value of the measured quantity in kg void
setMassWeight(BigDecimal massWeight)
The value of the measured quantity in kg BigDecimal
getBmi()
The value of the measured quantity void
setBmi(BigDecimal bmi)
The value of the measured quantity BigDecimal
getWeightWithUnit(Unit.Weight unit)
The value of the measured quantity in specified com.validic.mobile.record.Unit.Weight void
setWeightWithUnit(BigDecimal weight, Unit.Weight unit)
Set the weight value of the record after converting from the specified com.validic.mobile.record.Unit.Weight to kilograms -
Methods inherited from class com.validic.mobile.record.Record
createSummary, getActivityID, getComment, getExtra, getExtras, getHashedString, getIdentifier, getIntermediarySource, getLastUpdated, getMedia, getOriginalSource, getPeripheral, getQueueId, getRecordID, getRecordType, getSource, getSourceName, getSourcePeripheral, getTimestamp, getUtcOffset, getValidated, isSHealthRecord, newRecordFromPeripheral, newRecordWithType, setActivityID, setComment, setHashedActivityId, setIntermediarySource, setLastUpdated, setMedia, setOriginalSource, setPeripheral, setRecordID, setRecordType, setSource, setSourceName, setSourcePeripheral, setTimeStampToMidnight, setTimestamp, setTimestamp, setUtcOffset, setValidated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Weight
Weight()
Measurements associated with a user's weight and body mass.
-
Weight
Weight(Peripheral peripheral)
Base class for all objects that represent health records initialized with a BluetoothPeripheral.
-
-
Method Detail
-
getWeight
BigDecimal getWeight()
The value of the measured quantity in kg
-
setWeight
void setWeight(BigDecimal weight)
The value of the measured quantity in kg
-
getHeight
BigDecimal getHeight()
The value of the measured quantity in cm
-
setHeight
void setHeight(BigDecimal height)
The value of the measured quantity in cm
-
getFreeMass
BigDecimal getFreeMass()
The value of the measured quantity in kg
-
setFreeMass
void setFreeMass(BigDecimal freeMass)
The value of the measured quantity in kg
-
getFatPercent
BigDecimal getFatPercent()
The value of the measured quantity
-
setFatPercent
void setFatPercent(BigDecimal fatPercent)
The value of the measured quantity
-
getMassWeight
BigDecimal getMassWeight()
The value of the measured quantity in kg
-
setMassWeight
void setMassWeight(BigDecimal massWeight)
The value of the measured quantity in kg
-
getBmi
BigDecimal getBmi()
The value of the measured quantity
-
setBmi
void setBmi(BigDecimal bmi)
The value of the measured quantity
-
getWeightWithUnit
BigDecimal getWeightWithUnit(Unit.Weight unit)
The value of the measured quantity in specified com.validic.mobile.record.Unit.Weight
-
setWeightWithUnit
void setWeightWithUnit(BigDecimal weight, Unit.Weight unit)
Set the weight value of the record after converting from the specified com.validic.mobile.record.Unit.Weight to kilograms
-
-
-
-