BloodGlucoseRecord.Builder
public
static
final
class
BloodGlucoseRecord.Builder
extends Object
Builder class for BloodGlucoseRecord
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Public constructors
public Builder (Metadata metadata,
Instant time,
int specimenSource,
BloodGlucose level,
int relationToMeal,
int mealType)
Parameters |
metadata |
Metadata : Metadata to be associated with the record. See Metadata .
This value cannot be null . |
time |
Instant : Start time of this activity
This value cannot be null . |
specimenSource |
int : Type of body fluid used to measure the blood glucose. Optional,
enum field. Allowed values: SpecimenSource .
Value is BloodGlucoseRecord.SpecimenSource.SPECIMEN_SOURCE_UNKNOWN , BloodGlucoseRecord.SpecimenSource.SPECIMEN_SOURCE_INTERSTITIAL_FLUID , BloodGlucoseRecord.SpecimenSource.SPECIMEN_SOURCE_CAPILLARY_BLOOD , BloodGlucoseRecord.SpecimenSource.SPECIMEN_SOURCE_PLASMA , BloodGlucoseRecord.SpecimenSource.SPECIMEN_SOURCE_SERUM , BloodGlucoseRecord.SpecimenSource.SPECIMEN_SOURCE_TEARS , or BloodGlucoseRecord.SpecimenSource.SPECIMEN_SOURCE_WHOLE_BLOOD |
level |
BloodGlucose : Blood glucose level or concentration in BloodGlucose unit. Required
field. Valid range: 0-50 mmol/L.
This value cannot be null . |
relationToMeal |
int : Relationship of the meal to the blood glucose measurement.
Optional, enum field. Allowed values: RelationToMealType .
Value is BloodGlucoseRecord.RelationToMealType.RELATION_TO_MEAL_UNKNOWN , BloodGlucoseRecord.RelationToMealType.RELATION_TO_MEAL_GENERAL , BloodGlucoseRecord.RelationToMealType.RELATION_TO_MEAL_FASTING , BloodGlucoseRecord.RelationToMealType.RELATION_TO_MEAL_BEFORE_MEAL , or BloodGlucoseRecord.RelationToMealType.RELATION_TO_MEAL_AFTER_MEAL |
mealType |
int : Type of meal related to the blood glucose measurement. Optional, enum
field. Allowed values: MealType .
Value is MealType.MEAL_TYPE_UNKNOWN , MealType.MEAL_TYPE_BREAKFAST , MealType.MEAL_TYPE_LUNCH , MealType.MEAL_TYPE_DINNER , or MealType.MEAL_TYPE_SNACK |
Public methods
setZoneOffset
public BloodGlucoseRecord.Builder setZoneOffset (ZoneOffset zoneOffset)
Sets the zone offset of the user when the activity happened
Parameters |
zoneOffset |
ZoneOffset : This value cannot be null . |