public final class NutritionRecord implements Record


Captures what nutrients were consumed as part of a meal or a food item.

Summary

Public fields

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total biotin from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total caffeine from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total calcium from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total chloride from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total cholesterol from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total chromium from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total copper from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total dietary fiber from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Energy>

Metric identifier to retrieve the total energy from fat from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Energy>

Metric identifier to retrieve the total energy from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total folate from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total folic acid from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total iodine from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total iron from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total magnesium from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total manganese from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total molybdenum from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total monounsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total niacin from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total pantothenic acid from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total phosphorus from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total polyunsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total potassium from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total protein from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total riboflavin from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total saturated fat from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total selenium from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total sodium from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total sugar from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total thiamin from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total total carbohydrate from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total total fat from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total trans fat from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total unsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total vitamin a from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total vitamin b12 from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total vitamin b6 from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total vitamin c from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total vitamin d from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total vitamin e from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total vitamin k from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Mass>

Metric identifier to retrieve the total zinc from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

NutritionRecord(
    @NonNull Instant startTime,
    ZoneOffset startZoneOffset,
    @NonNull Instant endTime,
    ZoneOffset endZoneOffset,
    Mass biotin,
    Mass caffeine,
    Mass calcium,
    Energy energy,
    Energy energyFromFat,
    Mass chloride,
    Mass cholesterol,
    Mass chromium,
    Mass copper,
    Mass dietaryFiber,
    Mass folate,
    Mass folicAcid,
    Mass iodine,
    Mass iron,
    Mass magnesium,
    Mass manganese,
    Mass molybdenum,
    Mass monounsaturatedFat,
    Mass niacin,
    Mass pantothenicAcid,
    Mass phosphorus,
    Mass polyunsaturatedFat,
    Mass potassium,
    Mass protein,
    Mass riboflavin,
    Mass saturatedFat,
    Mass selenium,
    Mass sodium,
    Mass sugar,
    Mass thiamin,
    Mass totalCarbohydrate,
    Mass totalFat,
    Mass transFat,
    Mass unsaturatedFat,
    Mass vitaminA,
    Mass vitaminB12,
    Mass vitaminB6,
    Mass vitaminC,
    Mass vitaminD,
    Mass vitaminE,
    Mass vitaminK,
    Mass zinc,
    String name,
    int mealType,
    @NonNull Metadata metadata
)

Public methods

boolean
equals(Object other)
final Mass

Biotin in Mass unit.

final Mass

Caffeine in Mass unit.

final Mass

Calcium in Mass unit.

final Mass

Chloride in Mass unit.

final Mass

Cholesterol in Mass unit.

final Mass

Chromium in Mass unit.

final Mass

Copper in Mass unit.

final Mass

Dietary fiber in Mass unit.

@NonNull Instant

End time of the record.

ZoneOffset

User experienced zone offset at endTime, or null if unknown.

final Energy

Energy in Energy unit.

final Energy

Energy from fat in Energy unit.

final Mass

Folate in Mass unit.

final Mass

Folic acid in Mass unit.

final Mass

Iodine in Mass unit.

final Mass

Iron in Mass unit.

final Mass

Magnesium in Mass unit.

final Mass

Manganese in Mass unit.

final int

Type of meal related to the nutrients consumed.

@NonNull Metadata

Set of common metadata associated with the written record.

final Mass

Molybdenum in Mass unit.

final Mass

Monounsaturated fat in Mass unit.

final String

Name for food or drink, provided by the user.

final Mass

Niacin in Mass unit.

final Mass

Pantothenic acid in Mass unit.

final Mass

Phosphorus in Mass unit.

final Mass

Polyunsaturated fat in Mass unit.

final Mass

Potassium in Mass unit.

final Mass

Protein in Mass unit.

final Mass

Riboflavin in Mass unit.

final Mass

Saturated fat in Mass unit.

final Mass

Selenium in Mass unit.

final Mass

Sodium in Mass unit.

@NonNull Instant

Start time of the record.

ZoneOffset

User experienced zone offset at startTime, or null if unknown.

final Mass

Sugar in Mass unit.

final Mass

Thiamin in Mass unit.

final Mass

Total carbohydrate in Mass unit.

final Mass

Total fat in Mass unit.

final Mass

Trans fat in Mass unit.

final Mass

Unsaturated fat in Mass unit.

final Mass

Vitamin A in Mass unit.

final Mass

Vitamin B12 in Mass unit.

final Mass

Vitamin B6 in Mass unit.

final Mass

Vitamin C in Mass unit.

final Mass

Vitamin D in Mass unit.

final Mass

Vitamin E in Mass unit.

final Mass

Vitamin K in Mass unit.

final Mass

Zinc in Mass unit.

int
@NonNull String

Public fields

BIOTIN_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassBIOTIN_TOTAL

Metric identifier to retrieve the total biotin from androidx.health.connect.client.aggregate.AggregationResult.

CAFFEINE_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassCAFFEINE_TOTAL

Metric identifier to retrieve the total caffeine from androidx.health.connect.client.aggregate.AggregationResult.

CALCIUM_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassCALCIUM_TOTAL

Metric identifier to retrieve the total calcium from androidx.health.connect.client.aggregate.AggregationResult.

CHLORIDE_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassCHLORIDE_TOTAL

Metric identifier to retrieve the total chloride from androidx.health.connect.client.aggregate.AggregationResult.

CHOLESTEROL_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassCHOLESTEROL_TOTAL

Metric identifier to retrieve the total cholesterol from androidx.health.connect.client.aggregate.AggregationResult.

CHROMIUM_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassCHROMIUM_TOTAL

Metric identifier to retrieve the total chromium from androidx.health.connect.client.aggregate.AggregationResult.

COPPER_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassCOPPER_TOTAL

Metric identifier to retrieve the total copper from androidx.health.connect.client.aggregate.AggregationResult.

DIETARY_FIBER_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassDIETARY_FIBER_TOTAL

Metric identifier to retrieve the total dietary fiber from androidx.health.connect.client.aggregate.AggregationResult.

ENERGY_FROM_FAT_TOTAL

public static final @NonNull AggregateMetric<@NonNull EnergyENERGY_FROM_FAT_TOTAL

Metric identifier to retrieve the total energy from fat from androidx.health.connect.client.aggregate.AggregationResult.

ENERGY_TOTAL

public static final @NonNull AggregateMetric<@NonNull EnergyENERGY_TOTAL

Metric identifier to retrieve the total energy from androidx.health.connect.client.aggregate.AggregationResult.

FOLATE_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassFOLATE_TOTAL

Metric identifier to retrieve the total folate from androidx.health.connect.client.aggregate.AggregationResult.

FOLIC_ACID_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassFOLIC_ACID_TOTAL

Metric identifier to retrieve the total folic acid from androidx.health.connect.client.aggregate.AggregationResult.

IODINE_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassIODINE_TOTAL

Metric identifier to retrieve the total iodine from androidx.health.connect.client.aggregate.AggregationResult.

IRON_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassIRON_TOTAL

Metric identifier to retrieve the total iron from androidx.health.connect.client.aggregate.AggregationResult.

MAGNESIUM_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassMAGNESIUM_TOTAL

Metric identifier to retrieve the total magnesium from androidx.health.connect.client.aggregate.AggregationResult.

MANGANESE_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassMANGANESE_TOTAL

Metric identifier to retrieve the total manganese from androidx.health.connect.client.aggregate.AggregationResult.

MOLYBDENUM_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassMOLYBDENUM_TOTAL

Metric identifier to retrieve the total molybdenum from androidx.health.connect.client.aggregate.AggregationResult.

MONOUNSATURATED_FAT_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassMONOUNSATURATED_FAT_TOTAL

Metric identifier to retrieve the total monounsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

NIACIN_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassNIACIN_TOTAL

Metric identifier to retrieve the total niacin from androidx.health.connect.client.aggregate.AggregationResult.

PANTOTHENIC_ACID_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassPANTOTHENIC_ACID_TOTAL

Metric identifier to retrieve the total pantothenic acid from androidx.health.connect.client.aggregate.AggregationResult.

PHOSPHORUS_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassPHOSPHORUS_TOTAL

Metric identifier to retrieve the total phosphorus from androidx.health.connect.client.aggregate.AggregationResult.

POLYUNSATURATED_FAT_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassPOLYUNSATURATED_FAT_TOTAL

Metric identifier to retrieve the total polyunsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

POTASSIUM_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassPOTASSIUM_TOTAL

Metric identifier to retrieve the total potassium from androidx.health.connect.client.aggregate.AggregationResult.

PROTEIN_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassPROTEIN_TOTAL

Metric identifier to retrieve the total protein from androidx.health.connect.client.aggregate.AggregationResult.

RIBOFLAVIN_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassRIBOFLAVIN_TOTAL

Metric identifier to retrieve the total riboflavin from androidx.health.connect.client.aggregate.AggregationResult.

SATURATED_FAT_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassSATURATED_FAT_TOTAL

Metric identifier to retrieve the total saturated fat from androidx.health.connect.client.aggregate.AggregationResult.

SELENIUM_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassSELENIUM_TOTAL

Metric identifier to retrieve the total selenium from androidx.health.connect.client.aggregate.AggregationResult.

SODIUM_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassSODIUM_TOTAL

Metric identifier to retrieve the total sodium from androidx.health.connect.client.aggregate.AggregationResult.

SUGAR_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassSUGAR_TOTAL

Metric identifier to retrieve the total sugar from androidx.health.connect.client.aggregate.AggregationResult.

THIAMIN_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassTHIAMIN_TOTAL

Metric identifier to retrieve the total thiamin from androidx.health.connect.client.aggregate.AggregationResult.

TOTAL_CARBOHYDRATE_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassTOTAL_CARBOHYDRATE_TOTAL

Metric identifier to retrieve the total total carbohydrate from androidx.health.connect.client.aggregate.AggregationResult.

TOTAL_FAT_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassTOTAL_FAT_TOTAL

Metric identifier to retrieve the total total fat from androidx.health.connect.client.aggregate.AggregationResult.

TRANS_FAT_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassTRANS_FAT_TOTAL

Metric identifier to retrieve the total trans fat from androidx.health.connect.client.aggregate.AggregationResult.

UNSATURATED_FAT_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassUNSATURATED_FAT_TOTAL

Metric identifier to retrieve the total unsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_A_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassVITAMIN_A_TOTAL

Metric identifier to retrieve the total vitamin a from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_B12_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassVITAMIN_B12_TOTAL

Metric identifier to retrieve the total vitamin b12 from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_B6_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassVITAMIN_B6_TOTAL

Metric identifier to retrieve the total vitamin b6 from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_C_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassVITAMIN_C_TOTAL

Metric identifier to retrieve the total vitamin c from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_D_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassVITAMIN_D_TOTAL

Metric identifier to retrieve the total vitamin d from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_E_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassVITAMIN_E_TOTAL

Metric identifier to retrieve the total vitamin e from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_K_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassVITAMIN_K_TOTAL

Metric identifier to retrieve the total vitamin k from androidx.health.connect.client.aggregate.AggregationResult.

ZINC_TOTAL

public static final @NonNull AggregateMetric<@NonNull MassZINC_TOTAL

Metric identifier to retrieve the total zinc from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

NutritionRecord

Added in 1.1.0-alpha10
public NutritionRecord(
    @NonNull Instant startTime,
    ZoneOffset startZoneOffset,
    @NonNull Instant endTime,
    ZoneOffset endZoneOffset,
    Mass biotin,
    Mass caffeine,
    Mass calcium,
    Energy energy,
    Energy energyFromFat,
    Mass chloride,
    Mass cholesterol,
    Mass chromium,
    Mass copper,
    Mass dietaryFiber,
    Mass folate,
    Mass folicAcid,
    Mass iodine,
    Mass iron,
    Mass magnesium,
    Mass manganese,
    Mass molybdenum,
    Mass monounsaturatedFat,
    Mass niacin,
    Mass pantothenicAcid,
    Mass phosphorus,
    Mass polyunsaturatedFat,
    Mass potassium,
    Mass protein,
    Mass riboflavin,
    Mass saturatedFat,
    Mass selenium,
    Mass sodium,
    Mass sugar,
    Mass thiamin,
    Mass totalCarbohydrate,
    Mass totalFat,
    Mass transFat,
    Mass unsaturatedFat,
    Mass vitaminA,
    Mass vitaminB12,
    Mass vitaminB6,
    Mass vitaminC,
    Mass vitaminD,
    Mass vitaminE,
    Mass vitaminK,
    Mass zinc,
    String name,
    int mealType,
    @NonNull Metadata metadata
)

Public methods

equals

public boolean equals(Object other)

getBiotin

Added in 1.1.0-alpha10
public final Mass getBiotin()

Biotin in Mass unit. Optional field. Valid range: 0-100 grams.

getCaffeine

Added in 1.1.0-alpha10
public final Mass getCaffeine()

Caffeine in Mass unit. Optional field. Valid range: 0-100 grams.

getCalcium

Added in 1.1.0-alpha10
public final Mass getCalcium()

Calcium in Mass unit. Optional field. Valid range: 0-100 grams.

getChloride

Added in 1.1.0-alpha10
public final Mass getChloride()

Chloride in Mass unit. Optional field. Valid range: 0-100 grams.

getCholesterol

Added in 1.1.0-alpha10
public final Mass getCholesterol()

Cholesterol in Mass unit. Optional field. Valid range: 0-100 grams.

getChromium

Added in 1.1.0-alpha10
public final Mass getChromium()

Chromium in Mass unit. Optional field. Valid range: 0-100 grams.

getCopper

Added in 1.1.0-alpha10
public final Mass getCopper()

Copper in Mass unit. Optional field. Valid range: 0-100 grams.

getDietaryFiber

Added in 1.1.0-alpha10
public final Mass getDietaryFiber()

Dietary fiber in Mass unit. Optional field. Valid range: 0-100000 grams.

getEndTime

Added in 1.1.0-alpha10
public @NonNull Instant getEndTime()

End time of the record.

getEndZoneOffset

Added in 1.1.0-alpha10
public ZoneOffset getEndZoneOffset()

User experienced zone offset at endTime, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.

getEnergy

Added in 1.1.0-alpha10
public final Energy getEnergy()

Energy in Energy unit. Optional field. Valid range: 0-100000 kcal.

getEnergyFromFat

Added in 1.1.0-alpha10
public final Energy getEnergyFromFat()

Energy from fat in Energy unit. Optional field. Valid range: 0-100000 kcal.

getFolate

Added in 1.1.0-alpha10
public final Mass getFolate()

Folate in Mass unit. Optional field. Valid range: 0-100 grams.

getFolicAcid

Added in 1.1.0-alpha10
public final Mass getFolicAcid()

Folic acid in Mass unit. Optional field. Valid range: 0-100 grams.

getIodine

Added in 1.1.0-alpha10
public final Mass getIodine()

Iodine in Mass unit. Optional field. Valid range: 0-100 grams.

getIron

Added in 1.1.0-alpha10
public final Mass getIron()

Iron in Mass unit. Optional field. Valid range: 0-100 grams.

getMagnesium

Added in 1.1.0-alpha10
public final Mass getMagnesium()

Magnesium in Mass unit. Optional field. Valid range: 0-100 grams.

getManganese

Added in 1.1.0-alpha10
public final Mass getManganese()

Manganese in Mass unit. Optional field. Valid range: 0-100 grams.

getMealType

Added in 1.1.0-alpha10
public final int getMealType()

Type of meal related to the nutrients consumed. Optional, enum field. Allowed values: MealType.

See also
MealType

getMetadata

Added in 1.1.0-alpha10
public @NonNull Metadata getMetadata()

Set of common metadata associated with the written record.

getMolybdenum

Added in 1.1.0-alpha10
public final Mass getMolybdenum()

Molybdenum in Mass unit. Optional field. Valid range: 0-100 grams.

getMonounsaturatedFat

Added in 1.1.0-alpha10
public final Mass getMonounsaturatedFat()

Monounsaturated fat in Mass unit. Optional field. Valid range: 0-100000 grams.

getName

Added in 1.1.0-alpha10
public final String getName()

Name for food or drink, provided by the user. Optional field.

getNiacin

Added in 1.1.0-alpha10
public final Mass getNiacin()

Niacin in Mass unit. Optional field. Valid range: 0-100 grams.

getPantothenicAcid

Added in 1.1.0-alpha10
public final Mass getPantothenicAcid()

Pantothenic acid in Mass unit. Optional field. Valid range: 0-100 grams.

getPhosphorus

Added in 1.1.0-alpha10
public final Mass getPhosphorus()

Phosphorus in Mass unit. Optional field. Valid range: 0-100 grams.

getPolyunsaturatedFat

Added in 1.1.0-alpha10
public final Mass getPolyunsaturatedFat()

Polyunsaturated fat in Mass unit. Optional field. Valid range: 0-100000 grams.

getPotassium

Added in 1.1.0-alpha10
public final Mass getPotassium()

Potassium in Mass unit. Optional field. Valid range: 0-100 grams.

getProtein

Added in 1.1.0-alpha10
public final Mass getProtein()

Protein in Mass unit. Optional field. Valid range: 0-100000 grams.

getRiboflavin

Added in 1.1.0-alpha10
public final Mass getRiboflavin()

Riboflavin in Mass unit. Optional field. Valid range: 0-100 grams.

getSaturatedFat

Added in 1.1.0-alpha10
public final Mass getSaturatedFat()

Saturated fat in Mass unit. Optional field. Valid range: 0-100000 grams.

getSelenium

Added in 1.1.0-alpha10
public final Mass getSelenium()

Selenium in Mass unit. Optional field. Valid range: 0-100 grams.

getSodium

Added in 1.1.0-alpha10
public final Mass getSodium()

Sodium in Mass unit. Optional field. Valid range: 0-100 grams.

getStartTime

Added in 1.1.0-alpha10
public @NonNull Instant getStartTime()

Start time of the record.

getStartZoneOffset

Added in 1.1.0-alpha10
public ZoneOffset getStartZoneOffset()

User experienced zone offset at startTime, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.

getSugar

Added in 1.1.0-alpha10
public final Mass getSugar()

Sugar in Mass unit. Optional field. Valid range: 0-100000 grams.

getThiamin

Added in 1.1.0-alpha10
public final Mass getThiamin()

Thiamin in Mass unit. Optional field. Valid range: 0-100 grams.

getTotalCarbohydrate

Added in 1.1.0-alpha10
public final Mass getTotalCarbohydrate()

Total carbohydrate in Mass unit. Optional field. Valid range: 0-100000 grams.

getTotalFat

Added in 1.1.0-alpha10
public final Mass getTotalFat()

Total fat in Mass unit. Optional field. Valid range: 0-100000 grams.

getTransFat

Added in 1.1.0-alpha10
public final Mass getTransFat()

Trans fat in Mass unit. Optional field. Valid range: 0-100000 grams.

getUnsaturatedFat

Added in 1.1.0-alpha10
public final Mass getUnsaturatedFat()

Unsaturated fat in Mass unit. Optional field. Valid range: 0-100000 grams.

getVitaminA

Added in 1.1.0-alpha10
public final Mass getVitaminA()

Vitamin A in Mass unit. Optional field. Valid range: 0-100 grams.

getVitaminB12

Added in 1.1.0-alpha10
public final Mass getVitaminB12()

Vitamin B12 in Mass unit. Optional field. Valid range: 0-100 grams.

getVitaminB6

Added in 1.1.0-alpha10
public final Mass getVitaminB6()

Vitamin B6 in Mass unit. Optional field. Valid range: 0-100 grams.

getVitaminC

Added in 1.1.0-alpha10
public final Mass getVitaminC()

Vitamin C in Mass unit. Optional field. Valid range: 0-100 grams.

getVitaminD

Added in 1.1.0-alpha10
public final Mass getVitaminD()

Vitamin D in Mass unit. Optional field. Valid range: 0-100 grams.

getVitaminE

Added in 1.1.0-alpha10
public final Mass getVitaminE()

Vitamin E in Mass unit. Optional field. Valid range: 0-100 grams.

getVitaminK

Added in 1.1.0-alpha10
public final Mass getVitaminK()

Vitamin K in Mass unit. Optional field. Valid range: 0-100 grams.

getZinc

Added in 1.1.0-alpha10
public final Mass getZinc()

Zinc in Mass unit. Optional field. Valid range: 0-100 grams.

hashCode

public int hashCode()

toString

public @NonNull String toString()