@@ -0,0 +1,781 @@
+package com.japlj.healthydiet.food;%0A%0Apublic class FoodParameter %7B%0A%09public float proteinValue;%0A%09public float carbohydrateValue;%0A%09public float vitaMineValue;%0A%09public float saturation;%0A%09%0A%09public FoodParameter(float protein, float carbo, float vitamine, float satu) %7B%0A%09%09this.proteinValue = protein;%0A%09%09this.carbohydrateValue = carbo;%0A%09%09this.vitaMineValue = vitamine;%0A%09%09this.saturation = satu;%0A%09%7D%0A%09%0A%09private float addValue(float v1, float v2) %7B%0A%09%09return Math.min(100.0F, v1 + v2);%0A%09%7D%0A%09%0A%09public void add(FoodParameter param) %7B%0A%09%09proteinValue = addValue(proteinValue, param.proteinValue);%0A%09%09carbohydrateValue = addValue(carbohydrateValue, param.carbohydrateValue);%0A%09%09vitaMineValue = addValue(vitaMineValue, param.vitaMineValue);%0A%09%09saturation = addValue(saturation, param.saturation);%0A%09%7D%0A%7D%0A

Add the class representing nutrition values of a food