Package com.codename1.health.nutrition


package com.codename1.health.nutrition

Logged food and drink, as a sparse set of nutrient amounts.

Start at NutritionSample, written and read through the ordinary HealthStore using HealthDataType.NUTRITION.

Both platforms model nutrition as a record with several dozen optional nutrient fields. This package keeps that sparseness explicit rather than exposing forty nullable getters: an entry carries only the nutrients that were actually measured, and a nutrient that was never measured reads back as null rather than zero.

  • Classes
    Class
    Description
    A single nutrient that a NutritionSample can carry -- a macronutrient, a vitamin, a mineral.
    A logged food or meal, carrying whichever nutrients are known about it.