class BloodGlucose : Comparable


Represents a unit of blood glucose level (glycaemia). Supported units:

Summary

Public companion functions

BloodGlucose

Creates BloodGlucose with the specified value in mg/dL.

BloodGlucose

Creates BloodGlucose with the specified value in mmol/L.

Public functions

open operator Int
open operator Boolean
equals(other: Any?)
open Int
open String

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

Added in 1.1.0-alpha10
fun milligramsPerDeciliter(value: Double): BloodGlucose

Creates BloodGlucose with the specified value in mg/dL.

millimolesPerLiter

Added in 1.1.0-alpha10
fun millimolesPerLiter(value: Double): BloodGlucose

Creates BloodGlucose with the specified value in mmol/L.

Public functions

compareTo

Added in 1.1.0-alpha10
open operator fun compareTo(other: BloodGlucose): Int

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

inMilligramsPerDeciliter

Added in 1.1.0-alpha10
val inMilligramsPerDeciliterDouble

Returns the blood glucose level concentration in mg/dL.

inMillimolesPerLiter

Added in 1.1.0-alpha10
val inMillimolesPerLiterDouble

Returns the blood glucose level in mmol/L.