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 Summary
Modifier and TypeMethodDescriptionReturns the composition of the food.Returns the energy content (calories) of the food.default TimeCoordinateReturns the expiration date ("best before" date) of the food.
-
Method Details
-
getComposition
String getComposition()Returns the composition of the food.- Returns:
- the composition as a string description
-
getEnergyContent
-
getExpirationDate
Returns the expiration date ("best before" date) of the food.- Returns:
- the expiration coordinate, or null if non-perishable or unknown
-