BloodGlucose
public final class BloodGlucose implements Comparable
Represents a unit of blood glucose level (glycaemia). Supported units:
-
mmol/L - see
BloodGlucose.millimolesPerLiter -
mg/dL - see
BloodGlucose.milligramsPerDeciliter
Summary
Public methods |
|
|---|---|
int |
compareTo(@NonNull BloodGlucose other) |
boolean |
|
final double |
Returns the blood glucose level concentration in mg/dL. |
final double |
Returns the blood glucose level in mmol/L. |
int |
hashCode() |
static final @NonNull BloodGlucose |
milligramsPerDeciliter(double value)Creates |
static final @NonNull BloodGlucose |
millimolesPerLiter(double value)Creates |
@NonNull String |
toString() |
Public methods
getMilligramsPerDeciliter
public final double getMilligramsPerDeciliter()
Returns the blood glucose level concentration in mg/dL.
getMillimolesPerLiter
public final double getMillimolesPerLiter()
Returns the blood glucose level in mmol/L.
milligramsPerDeciliter
public static final @NonNull BloodGlucose milligramsPerDeciliter(double value)
Creates BloodGlucose with the specified value in mg/dL.
millimolesPerLiter
public static final @NonNull BloodGlucose millimolesPerLiter(double value)
Creates BloodGlucose with the specified value in mmol/L.