Interface Food


public interface Food
An interface representing a substance that can be eaten or drunk to provide nutritional support. Food contains nutrients such as carbohydrates, fats, proteins, vitamins, or minerals.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • getComposition

      String getComposition()
      Returns the composition of the food.
      Returns:
      the composition as a string description
    • getEnergyContent

      default Quantity<Energy> getEnergyContent()
      Returns the energy content (calories) of the food.
      Returns:
      the energy quantity, or null if unknown
    • getExpirationDate

      default TimeCoordinate getExpirationDate()
      Returns the expiration date ("best before" date) of the food.
      Returns:
      the expiration coordinate, or null if non-perishable or unknown