BloodGlucose
class BloodGlucose : Comparable
Represents a unit of blood glucose level (glycaemia). Supported units:
-
mmol/L - see
BloodGlucose.millimolesPerLiter -
mg/dL - see
BloodGlucose.milligramsPerDeciliter
Summary
Public companion functions |
|
|---|---|
BloodGlucose |
milligramsPerDeciliter(value: Double)Creates |
BloodGlucose |
millimolesPerLiter(value: Double)Creates |
Public functions |
|
|---|---|
open operator Int |
compareTo(other: BloodGlucose) |
open operator Boolean |
|
open Int |
hashCode() |
open String |
toString() |
Public properties |
|
|---|---|
Double |
Returns the blood glucose level concentration in mg/dL. |
Double |
Returns the blood glucose level in mmol/L. |
Public companion functions
milligramsPerDeciliter
fun milligramsPerDeciliter(value: Double): BloodGlucose
Creates BloodGlucose with the specified value in mg/dL.
millimolesPerLiter
fun millimolesPerLiter(value: Double): BloodGlucose
Creates BloodGlucose with the specified value in mmol/L.
Public functions
Public properties
inMilligramsPerDeciliter
val inMilligramsPerDeciliter: Double
Returns the blood glucose level concentration in mg/dL.
inMillimolesPerLiter
val inMillimolesPerLiter: Double
Returns the blood glucose level in mmol/L.