Class MensaMeal.MensaMealBuilder
java.lang.Object
edu.kit.aifb.atks.mensascraper.lib.MensaMeal.MensaMealBuilder
- Enclosing class:
MensaMeal
-
Method Summary
Modifier and TypeMethodDescriptionList of additives / ingredients / allergens.build()
carbs
(float carbs) Amount of carbohydrates contained in the meal in grams (g).co2Emissions
(float co2Emissions) CO2 emissions of this meal in grams.fat
(float fat) Amount of fat contained in the meal in grams (g).kcal
(float kcal) Amount of energy of the meal in kcal.Counter inside the canteen offering this meal.Name of the meal.price
(float price) Price of the meal in Euros (€).proteins
(float proteins) Amount of proteins contained in the meal in grams (g).salt
(float salt) Amount of salt contained in the meal in grams (g).saturated
(float saturated) Amount of contained saturated fats in grams (g).scoreAnimals
(short scoreAnimals) Animal welfare rating of this meal (1-3 stars).scoreCo2
(short scoreCo2) Rating of emitted CO2 emissions of this meal (1-3 stars).scoreRainforest
(short scoreRainforest) Rainforest friendliness score of this meal (1-3 stars).scoreWater
(short scoreWater) Rating of water consumption of this meal (1-3 stars).sugar
(float sugar) Amount of sugar contained in the meal in grams (g).toString()
type
(MensaMealType type) Type of the meal.waterConsumption
(float waterConsumption) Water consumption of this meal in liters.
-
Method Details
-
name
Name of the meal.- Returns:
this
.
-
line
Counter inside the canteen offering this meal.- Returns:
this
.
-
price
Price of the meal in Euros (€).- Returns:
this
.
-
type
Type of the meal.- Returns:
this
.
-
kcal
Amount of energy of the meal in kcal.- Returns:
this
.
-
proteins
Amount of proteins contained in the meal in grams (g).- Returns:
this
.
-
carbs
Amount of carbohydrates contained in the meal in grams (g).- Returns:
this
.
-
sugar
Amount of sugar contained in the meal in grams (g).- Returns:
this
.
-
fat
Amount of fat contained in the meal in grams (g).- Returns:
this
.
-
saturated
Amount of contained saturated fats in grams (g).- Returns:
this
.
-
salt
Amount of salt contained in the meal in grams (g).- Returns:
this
.
-
scoreCo2
Rating of emitted CO2 emissions of this meal (1-3 stars).- Returns:
this
.
-
scoreWater
Rating of water consumption of this meal (1-3 stars).- Returns:
this
.
-
scoreAnimals
Animal welfare rating of this meal (1-3 stars).- Returns:
this
.
-
scoreRainforest
Rainforest friendliness score of this meal (1-3 stars).- Returns:
this
.
-
co2Emissions
CO2 emissions of this meal in grams.- Returns:
this
.
-
waterConsumption
Water consumption of this meal in liters.- Returns:
this
.
-
additives
List of additives / ingredients / allergens. See List of allergens.- Returns:
this
.
-
build
-
toString
-